[Mono-bugs] [Bug 82725][Nor] New - multiref not deserialized
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Sep 6 20:25:10 EDT 2007
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 xim at divinehawk.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82725
--- shadow/82725 2007-09-06 20:25:10.000000000 -0400
+++ shadow/82725.tmp.12357 2007-09-06 20:25:10.000000000 -0400
@@ -0,0 +1,94 @@
+Bug#: 82725
+Product: Mono: Class Libraries
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web.Services
+AssignedTo: atsushi at ximian.com
+ReportedBy: xim at divinehawk.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: multiref not deserialized
+
+Description of Problem:
+Multiref/complex type not deserialized properly in SOAP response.
+
+Steps to reproduce the problem:
+1. Make the following XML file available under http://127.0.0.1:5555/, e.g.
+using:
+(printf "HTTP/1.1 200 OK\\r\\nContent-Type: text/xml\\r\\n";
+ printf "Content-Length: $(cat "soap-response.xml"|wc -c)\\r\\n\\r\\n";cat
+"soap-response.xml") | nc -l 5555 >/dev/zero 2>&1
+
+<?xml version="1.0" encoding="us-ascii"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns='http://disa.mil/ws/Test/wsdl'
+ xmlns:typens='http://disa.mil/ws/Test/types'
+>
+ <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+<m:testServiceResponse xmlns:m="http://disa.mil/ws/Test/message">
+<ReturnValue ><NumRows xsi:type="xsd:int">8</NumRows>
+<StartOffset xsi:type="xsd:long">0</StartOffset>
+<TotalCount xsi:type="xsd:long">8</TotalCount>
+<ResultTable href="#id0"/>
+</ReturnValue>
+</m:testServiceResponse>
+<soapenc:Array id="id0"
+soapenc:arrayType="typens:testServiceReturnValueRow[8]">
+ <item>
+<ID xsi:type="xsd:int">882057</ID>
+ </item>
+ <item>
+<ID xsi:type="xsd:int">882059</ID>
+ </item>
+ <item>
+<ID xsi:type="xsd:int">882061</ID>
+ </item>
+ <item>
+<ID xsi:type="xsd:int">882085</ID>
+ </item>
+ <item>
+<ID xsi:type="xsd:int">882031</ID>
+ </item>
+ <item>
+<ID xsi:type="xsd:int">882058</ID>
+ </item>
+ <item>
+<ID xsi:type="xsd:int">882060</ID>
+ </item>
+ <item>
+<ID xsi:type="xsd:int">882056</ID>
+ </item>
+</soapenc:Array>
+ </soap:Body>
+
+
+2. Compile and run testservice.cs
+
+Actual Results:
+
+testService type: System.Xml.XmlNode[]
+
+Unhandled Exception: System.InvalidCastException: Cannot cast from source
+type to destination type.
+ at TestService.testService () [0x00000]
+ at (wrapper remoting-invoke-with-check) TestService:testService ()
+ at ConsoleApplication1.Program.Main (System.String[] args) [0x00000]
+
+Expected Results:
+
+testService type: testServiceReturnValue
+test service: 8
+
+Additional Information:
+
+Referenced files forthcoming.
More information about the mono-bugs
mailing list