[Mono-bugs] [Bug 79047][Nor] New - Mono does not resend xmlns as required

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 10 03:03:07 EDT 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 nathan at mammoth.com.au.

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

--- shadow/79047	2006-08-10 03:03:06.000000000 -0400
+++ shadow/79047.tmp.2563	2006-08-10 03:03:06.000000000 -0400
@@ -0,0 +1,79 @@
+Bug#: 79047
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web.Services
+AssignedTo: lluis at ximian.com                            
+ReportedBy: nathan at mammoth.com.au               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono does not resend xmlns as required
+
+Description of Problem:
+
+I have a third-party managed .dll that uses talks to a Java web service (I
+believe with the "Electric XML" toolkit). This works fine with
+Microsoft.NET but not in Mono. By capturing the HTTP stream with Ethereal I
+can see the problem is in the SOAP packet being sent by Mono.
+
+First, here is the relevant snippet from Microsoft's packet (newlines added
+for clarity):
+
+<?xml version="1.0" encoding="utf-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
+xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+xmlns:tns="urn:theplatform-com:v4/wsdl/"
+xmlns:types="urn:theplatform-com:v4/wsdl/encodedTypes"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<soap:Header>
+<q1:JobHeader id="h_id1" xmlns:q1="urn:theplatform-com:v4/base/" />
+</soap:Header>
+<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+<q1:addMedia xmlns:q1="urn:theplatform-com:v4/">
+[snip]
+
+Here is Mono's:
+
+<?xml version="1.0" encoding="utf-8"?>
+<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+<soap:Header>
+<JobHeader href="#id1" />
+<q1:JobHeader id="id1" xsi:type="q1:JobHeader" soap:actor=""
+soap:mustUnderstand="0" xmlns:q1="urn:theplatform-com:v4/base/" />
+</soap:Header>
+<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
+<q1:addMedia>
+[snip]
+
+
+
+Actual Results:
+
+Note the last line of the mono packet:  the <q1:addMedia> tag does not
+include the xmlns:q1 attribute (assumedly because it feels it was
+identified earlier in the <q1:jobHeader> tag.
+
+Expected Results:
+
+The <q1:addMedia> tag, living outside the scope of the <soap:header> tag,
+should repeat the xmlns:q1 attribute.
+
+How often does this happen? 
+
+Every time.
+
+Additional Information:
+
+I don't know if the "Expected Results" is actually true in terms of the
+SOAP specification - do namespaces live only in the scope (block) which
+they're defined in, or should they be valid across the entire XML document?


More information about the mono-bugs mailing list