[Mono-devel-list] Problem using SoapHttpClientProtocol class with PHP webservice
Lluis Sanchez
lluis at ximian.com
Thu Oct 16 06:02:05 EDT 2003
Hi!
It is probably a bug in System.Web.Services. I need to check the wsdl
document for this web service. Can you file a bug in bugzilla and attach
the wsdl file? Do you know of any web service using NuSOAP on the net
that I could use to reproduce that problem?
Thanks!
Lluis
On dj, 2003-10-16 at 11:28, Jörg Rosenkranz wrote:
> Hi all,
>
> I have a problem using SoapHttpClientProtocol.
> I want to access a webservice written in PHP using NuSOAP
> (http://dietrich.ganx4.com/nusoap). This webservice can be
> accessed using MS.NET without problems.
>
> Now I've tried to access it using Mono and ran into the problem that
> the return values aren't decoded. I've tracked this problem down to System.Xml.Serialization.XmlSerializationReaderInterpreter.
> In the function ReadMessage it uses a call to XmlReader.IsStartElement
> which returns false because the namespaces don't match.
>
> The webservice defines a target namespace "urn:Raptor" in it's
> WSDL file. The received SOAP message looks like:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <SOAP-ENV:Envelope
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:si="http://soapinterop.org/xsd">
> <SOAP-ENV:Body>
> <addpersonResponse>
> <return xsi:type="xsd:string">Ok,1066295083-Hans-Meier</return>
> </addpersonResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
> XmlReader.IsStartElement uses following values for comparison:
> localName = "addpersonResponse"
> LocalName = "addpersonResponse"
> namespaceName = "urn:Raptor"
> NamespaceURI = ""
>
> Is this a System.XML.Webservices bug, a System.XML.Serialization
> bug or a bug in the PHP webservice?
>
> Jörg.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list