.net soap base64binary使用php如何解码?

netstu_ 发布于 2013/05/09 18:01
阅读 1K+
收藏 1
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <GetDlvRoleResponse xmlns="http://tempuri.org/">
         <GetDlvRoleResult>AAEAAAD/////AQAAAAAAAAAMAgAAAEpTb3BfQ29tbW9uREJMaWJyYXJ5LCBWZXJzaW9uPTEuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAAJFNvcF9Db21tb25EQkxpYnJhcnkuRGF0YVNldFN1cnJvZ2F0ZQoAAAAMX2RhdGFzZXROYW1lCl9uYW1lc3BhY2UHX3ByZWZpeA5fY2FzZVNlbnNpdGl2ZQdfbG9jYWxlE19lbmZvcmNlQ29uc3RyYWludHMOX2ZrQ29uc3RyYWludHMKX3JlbGF0aW9ucxNfZXh0ZW5kZWRQcm9wZXJ0aWVzFF9kYXRhVGFibGVTdXJyb2dhdGVzAQEBAAMAAwMDBAEgU3lzdGVtLkdsb2JhbGl6YXRpb24uQ3VsdHVyZUluZm8BHFN5c3RlbS5Db2xsZWN0aW9ucy5BcnJheUxpc3QcU3lzdGVtLkNvbGxlY3Rpb25zLkFycmF5TGlzdBxTeXN0ZW0uQ29sbGVjdGlvbnMuSGFzaHRhYmxlKFNvcF9Db21tb25EQkxpYnJhcnkuRGF0YVRhYmxlU3Vycm9nYXRlW10CAAAAAgAAAAYDAAAACk5ld0RhdGFTZXQGBAAAAAAJBAAAAAAJBQAAAAEJBgAAAAkHAAAACQgAAAAJCQAAAAQFAAAAIFN5c3RlbS5HbG9iYWxpemF0aW9uLkN1bHR1cmVJbmZvCgAAAAljdWx0dXJlSUQMbV9pc1JlYWRPbmx5C2NvbXBhcmVJbmZvCHRleHRJbmZvB251bUluZm8MZGF0ZVRpbWVJbmZvCGNhbGVu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2FkbWluKCkKBtQAAAAL5oC757uP55CGKCkKBtUAAAAa6ZSA5ZSu5oC755uRKOmUgOWUruaAu+ebkSkKBtYAAAAa6LWE5paZ566h55CGKOi1hOaWmeeuoeeQhikKBtcAAAAa5o6l57q/57uP55CGKOaOpee6v+e7j+eQhikKBtgAAAAa5o6l57q/5ZGY5belKOaOpee6v+WRmOW3pSkKBtkAAAAa5a6i5pyN57uP55CGKOWuouacjee7j+eQhikKBtoAAAAa5a6i5pyN57uE6ZW/KOWuouacjee7hOmVvykKBtsAAAAa5a6i5pyN5Lq65ZGYKOWuouacjeS6uuWRmCkKBtwAAAAa5reY5a6d57uP55CGKOa3mOWunee7j+eQhikKBt0AAAAa5reY5a6d5ZGY5belKOa3mOWuneWRmOW3pSkKBt4AAAAa57q/5LiK5oC755uRKOe6v+S4iuaAu+ebkSkKBt8AAAAa5qC45Y2V57uP55CGKOaguOWNlee7j+eQhikKBuAAAAAa5qC45Y2V5ZGY5belKOaguOWNleWRmOW3pSkKBuEAAAAa54mp5rWB57uP55CGKOeJqea1gee7j+eQhikKBuIAAAAU54mp5rWB5ZGYKOeJqea1geWRmCkKBuMAAAASSVTkurrlkZgoSVTkurrlkZgpCgbkAAAAGuW9lemfs+euoeeQhijlvZXpn7PnrqHnkIYpCgblAAAAIOaAu+e7j+eQhuWKqeeQhijmgLvnu4/nkIbliqnnkIYpCgbmAAAAGui/kOiQpee7j+eQhijov5DokKXnu4/nkIYpCgbnAAAAFOWfueiuremDqCjln7norq3pg6gpCgboAAAAGui0ouWKoee7j+eQhijotKLliqHnu4/nkIYpCgbpAAAAGuWUruWQjuS4u+euoSjllK7lkI7kuLvnrqEpCgbqAAAAGuWUruWQjuS4k+WRmCjllK7lkI7kuJPlkZgpCgbrAAAAFOmHh+i0remDqCjph4fotK3pg6gpCgbsAAAAGuS4k+WutuWuouacjSjkuJPlrrblrqLmnI0pCgbtAAAAJuaOqOW5v+aKpeihqOafpeivoijmjqjlub/miqXooajmn6Xor6IpCgbuAAAAJuS4k+WutuWuouacjee7j+eQhijkuJPlrrblrqLmnI3nu4/nkIYpCgbvAAAAHueJqea1geWRmG90aGVyKOeJqea1geWRmG90aGVyKQoG8AAAACborqLljZXmiYDmnInlip/og70o6K6i5Y2V5omA5pyJ5Yqf6IO9KQoQoAAAAAAAAAAQoQAAAAAAAAAQogAAAAAAAAAQowAAAAAAAAAEqQAAAB9TeXN0ZW0uVW5pdHlTZXJpYWxpemF0aW9uSG9sZGVyAwAAAAREYXRhCVVuaXR5VHlwZQxBc3NlbWJseU5hbWUBAAEICgIAAAAJBAAAAAGqAAAAqQAAAAbyAAAADVN5c3RlbS5TdHJpbmcEAAAABvMAAABLbXNjb3JsaWIsIFZlcnNpb249Mi4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5AawAAAAIAAAA7FE4PwAAAAAKCgsAAAAJ9AAAAAn1AAAAAbQAAAAIAAAA7FE4PwAAAAAKCgsAAAAJ9gAAAAn3AAAAEPQAAAAAAAAAEPUAAAAAAAAAEPYAAAAAAAAAEPcAAAAAAAAACw==</GetDlvRoleResult>
      </GetDlvRoleResponse>
   </soap:Body>
</soap:Envelope>
在网上查过,都说使用base64_decode即可, 使用网上的方法各种测试,始终无法解开

以下是问题补充:

@肖振:C# 编码 解码 1、序列化二进制代码: byte[] bArrayResult = null; MemoryStream ms = new MemoryStream(); IFormatter bf = new BinaryFormatter(); bf.Serialize(ms, 数据);//注释:数据可以是DataTable、DataSet、List<string>等类型数据 bArrayResult = ms.ToArray();  ms.Close(); return bArrayResult; 2、反序列化二进制代码: byte[] bUserData //注释:返回结果或者参数(已压缩成二进制) MemoryStream ms = new MemoryStream(bUserData); IFormatter bf = new BinaryFormatter(); object obj = bf.Deserialize(ms); 类型 Result = (类型)obj;//注释:DataTable、DataSet、List<string>等类型 ms.Close(); return Result; (2013/09/16 09:58)
加载中
0
eechen的粉丝
eechen的粉丝
<?php
$string
= 'data_you_want_to_send___like_xml_in_soap' ;
$soap_data = array(
       
'foo' => 'bar' ,
     
//'content' => base64_encode($string ) // don't do this
       
'content' => $string //do this
);
$response = $client -> Send ( $soap_data );
?>
南湖船老大
南湖船老大
答非所问
0
南湖船老大
南湖船老大
必须不能解开啊,因为里面有二进制,又不是纯ASCII字符。解开了你也看不懂
0
南湖船老大
南湖船老大

你应该把decode后的数据以二进制格式保存,然后找接口提供者提供二进制格式说明

$fp=fopen('a.bin','wb+');
$b=base64_de.....
fwrite....
0
netstu_
netstu_

引用来自“阿尔法兽”的答案

必须不能解开啊,因为里面有二进制,又不是纯ASCII字符。解开了你也看不懂

兄弟你很厉害呀,怎么能一眼就能看出里面包含的有二进制数据?

里面的确有二进制数据,但怎么封装的不清楚,是第三方公司开发的,没源码

0
netstu_
netstu_

反编了一下他们的代码,好像是这么加密的,不知道是不是,不太懂.net

public static CSop_DataCompressor DecompressData(byte[] btBuffer)
        {
            MemoryStream msStream = new MemoryStream(btBuffer);
            BinaryFormatter bfFormat = new BinaryFormatter();
            DataSetSurrogate dssData = (DataSetSurrogate)bfFormat.Deserialize(msStream);

            return dssData.ConvertToDataSet();
        }
这样的该如何解?

0
小耶果
小耶果
这个.Net Framework对于对象的序列化(二进制),然后在Base64.看代码是一个DataSet对象?也就是直接传出了.Net framework的对象,PHP不好表示吧.让他们把Dataset序列化成xml字串或者你用aspx自己做桥接然后再和php通讯.对方这样设计webservice的传出参数压根就没想过供除aspx以外的语言调用.
0
netstu_
netstu_

引用来自“小耶果”的答案

这个.Net Framework对于对象的序列化(二进制),然后在Base64.看代码是一个DataSet对象?也就是直接传出了.Net framework的对象,PHP不好表示吧.让他们把Dataset序列化成xml字串或者你用aspx自己做桥接然后再和php通讯.对方这样设计webservice的传出参数压根就没想过供除aspx以外的语言调用.

:)谢谢

关键是接口中90%的方法都返回的是这种base64binary.如果再使用.net做桥接,费好多事,而且效率还不高.


0
肖振

我也遇到这个个问题了,只能通过桥接解决吗? php 数据类型太不严谨了 也少

C# 编码 解码 

1、序列化二进制代码:

byte[] bArrayResult = null;

 MemoryStream ms = new MemoryStream();

 IFormatter bf = new BinaryFormatter();

 bf.Serialize(ms, 数据);//注释:数据可以是DataTable、DataSet、List<string>等类型数据

 bArrayResult = ms.ToArray();

ms.Close();

return bArrayResult;

 

2、反序列化二进制代码:

byte[] bUserData //注释:返回结果或者参数(已压缩成二进制)

MemoryStream ms = new MemoryStream(bUserData);

IFormatter bf = new BinaryFormatter();

object obj = bf.Deserialize(ms);

类型 Result = (类型)obj;//注释:DataTable、DataSet、List<string>等类型

ms.Close();

return Result;

0
SamZhou
SamZhou

还要看是是否封包了,如果封包了,二进制的包头的几个字节是包长度……

我使用过的解包的函数:

public static function Read7BitEncodedInt($src) {
        $p = 0;
        $num = 0;
        $num2 = 0;
        while($num2 != 35) {
            $flag = substr($src, $p, 1);
            $pack = unpack('C*', $flag);
            $byte = $pack[1];
            
            $num |= (int)($byte & 127) << $num2;
            $num2 += 7;
            $p++;
            if (($byte & 128) == 0) {
                $count = $num;
                break;
            }
        }

        $out = substr($src, $p, $count);
        
        return array(
            'count' => $count,
            'src' => $out,
        );
    }




返回顶部
顶部