On 21.04.2010, at 10:47, EleGoS wrote:
Hello!I have to manage a SOAP client/server data flux, acting as a proxy, using the content-type soap+msbin1. I have to send via curl the SOAP data, and then to receive the output and turn it back in print (still as binary data). I've tried with sever allways to hanlde this binary XML stream, with no success (the data itself breaks and the server doesn't receive the correct stream). I also need to decrypt the data which comes from the curl exec, but I have no idea on how to do that.I know there is no current implementation of this proprietary binary, but I found the specifications on the MSDN website. Still have no clue on how to implement a .net binary xml read/write class.Here is the MSDN documentation on it: -> http://msdn.microsoft.com/en-us/library/cc219175(PROT.10).aspx I have really no clue on where to start =\May you please help me starting implementing such class? Just the input, "the boring work" must be made by myself I know :)
If you want to implement a client that uses the binary protocol, you just need to override SoapClient::__doRequest() where you can convert between binary and "normal" XML: http://php.net/manual/en/soapclient.dorequest.php
If you want to implement a server that handles the binary protocol, it's probably easiest to convert the binary data to XML and pass it to SoapServer::handle().
- David
Attachment:
smime.p7s
Description: S/MIME cryptographic signature