Cerebrus, Thanks for the reply.
I do not have access to the ASMX webservice source code and that's why I did not provide that information on my first message. I do agree with the "total disregard" and lack of documentation but some developers are like that ... unfortunately. I have solved the problem in a rude manner ... we hired a .NET hosting service for communicating with the ASMX webservice ... so, PHP app calls .NET code, .NET code communicates with remote ASMX webservice, webservice returns information to .NET code and finally .NET code redirects to PHP app with all needed variables. All this because I could not find common grounds on data conversion between PHP and .NET. Bummer. Thanks again FYI. On Mon, Sep 17, 2012 at 7:05 AM, Cerebrus <zorg...@sify.com> wrote: > André, > > Without more details about the ASMX webservice (such as some sample > code or atleast the WSDL), I am assuming this is an XML SOAP > webservice. > > If so, then I don't see why the webservice should expect binary data > to be supplied by a client at all. I doubt that is possible, but if > that is indeed so, the service has been designed with scant disregard > for any kind of standard. Please show us the webservice signature. > > To answer your questions, > > a) It is a given that different programming frameworks working on > different platforms/architectures will always come up with distinct > binary formatted output. Therefore, .NET formatted binary data can > only be read by a .NET deserializer. Any competent .NET developer will > tell you that wherever portability or interoperability is a > requirement, XML serialization is the way to go. > > b) No idea, need to see the code. > > On Sep 12, 5:21 pm, André Mattos <contacteandremat...@gmail.com> > wrote: > > Morning to all ... > > > > I'm writing a PHP app that communicates with a asmx webservice. > > > > The webservice developer sent me some sample code how this app should > work > > (and it works perfectly) in VB.NET but I cannot manage to convert the > data > > accordingly to the webservice binary expected format using PHP. > > > > My question are : > > > > 1) VB.NET's Binaryformatter is technically equivalente to PHP's > serialize, > > but the output is the same ? > > 2) In his sample code, he passes the serialized information to a > > Memorystream and then converts it to an array ... for what purpose ? > > > > Thanks a lot for any positive replies. > > > > Regards, > > André Mattos > > -- > You received this message because you are subscribed to the Google > Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML > Web Services,.NET Remoting" group. > To post to this group, send email to dotnetdevelopment@googlegroups.com > To unsubscribe from this group, send email to > dotnetdevelopment+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en > or visit the group website at http://megasolutions.net > -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to dotnetdevelopment@googlegroups.com To unsubscribe from this group, send email to dotnetdevelopment+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net