[Mono-bugs] [Bug 79985][Nor] New - W3C SOAP XML namespace unsupported

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 20 06:52:47 EST 2006


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 pawel.sakowski at mindbreeze.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79985

--- shadow/79985	2006-11-20 06:52:47.000000000 -0500
+++ shadow/79985.tmp.4898	2006-11-20 06:52:47.000000000 -0500
@@ -0,0 +1,91 @@
+Bug#: 79985
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web.Services
+AssignedTo: lluis at ximian.com                            
+ReportedBy: pawel.sakowski at mindbreeze.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: W3C SOAP XML namespace unsupported
+
+Description of Problem:
+The http://www.w3.org/2003/05/soap-envelope XML namespace for SOAP is
+unsupported.
+
+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 "w3c-response.xml"|wc
+-c)\\r\\n\\r\\n";cat "w3c-response.xml") | \
+                nc -l -p 5555 >/dev/zero 2>&1 &
+
+
+<soap:Envelope xmlns:soap='http://www.w3.org/2003/05/soap-envelope'>
+ <soap:Body>
+  <Resp xmlns="urn:foo"/>
+ </soap:Body>
+</soap:Envelope>
+
+
+2. Invoke the following code:
+
+    using System.Web.Services;
+    using System.Web.Services.Protocols;
+    using System;
+    using System.Xml.Serialization;
+
+    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services",
+"2.0.50727.42")]
+    [System.Diagnostics.DebuggerStepThroughAttribute()]
+    [System.ComponentModel.DesignerCategoryAttribute("code")]
+   
+[System.Web.Services.WebServiceBindingAttribute(Name="FooServiceBinding",
+Namespace="urn:foo")]
+    public partial class FooService :
+System.Web.Services.Protocols.SoapHttpClientProtocol {
+        static void Main() {
+            FooService s = new FooService();
+            s.Url = "http://127.0.0.1:5555";
+            s.Req();
+        }
+
+        public FooService() {
+            this.SoapVersion =
+System.Web.Services.Protocols.SoapProtocolVersion.Soap12;
+        }
+
+        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("",
+RequestNamespace="urn:foo", ResponseElementName="Resp",
+ResponseNamespace="urn:foo",
+Use=System.Web.Services.Description.SoapBindingUse.Literal,
+ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
+        public void Req() {
+            this.Invoke("Req", new object[0]);
+        }
+
+    }
+
+Actual Results:
+Unhandled Exception: System.Xml.XmlException: Expecting Envelope tag from
+namespace http://schemas.xmlsoap.org/soap/envelope/, got Envelope and
+http://www.w3.org/2003/05/soap-envelope instead  Line 1, position 2.
+
+Expected Results:
+successful execution
+
+How often does this happen? 
+100%
+
+Additional Information:
+The use of the W3C namespace is standardized under
+http://www.w3.org/TR/2003/REC-soap12-part0-20030624/


More information about the mono-bugs mailing list