[Mono-bugs] [Bug 49729][Nor] New - Problem retrieving return value of PHP webservice
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 16 Oct 2003 06:15:28 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by joergr@voelcker.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49729
--- shadow/49729 2003-10-16 06:15:28.000000000 -0400
+++ shadow/49729.tmp.26340 2003-10-16 06:15:28.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 49729
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: JoergR@voelcker.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Problem retrieving return value of PHP webservice
+
+Description of Problem:
+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 = ""