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 [EMAIL PROTECTED]

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

--- shadow/79047        2006-08-10 03:03:06.000000000 -0400
+++ shadow/79047.tmp.2908       2006-08-10 03:48:57.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 79047
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Sys.Web.Services
 AssignedTo: [EMAIL PROTECTED]                            
 ReportedBy: [EMAIL PROTECTED]               
 QAContact: [EMAIL PROTECTED]
 TargetMilestone: ---
@@ -74,6 +74,67 @@
 
 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?
+
+------- Additional Comments From [EMAIL PROTECTED]  2006-08-10 03:48 -------
+The output is weird, as it is not well-formed XML.
+
+XmlTextWriter seems to be working fine here:
+
+using System;
+using System.Xml;
+using System.Xml.Schema;
+
+public class Test
+{
+       public static void Main ()
+       {
+               XmlTextWriter xw = new XmlTextWriter (Console.Out);
+               xw.Formatting = Formatting.Indented;
+               string soap = "http://schemas.xmlsoap.org/soap/envelope/";;
+               string q1 = "urn:theplatform-com:v4/base/";
+               string xmlns = "http://www.w3.org/2000/xmlns/";;
+               xw.WriteStartElement ("soap", "Envelope", soap);
+               xw.WriteAttributeString ("xmlns", "xsi", xmlns,
+                       XmlSchema.InstanceNamespace);
+               xw.WriteAttributeString ("xmlns", "xsd", xmlns,
+                       XmlSchema.Namespace);
+               xw.WriteStartElement ("soap", "Header", soap);
+               xw.WriteStartElement ("JobHeader");
+               xw.WriteAttributeString ("href", "#id1");
+               xw.WriteStartElement ("q1", "JobHeader", q1);
+               xw.WriteAttributeString ("id", "id1");
+               xw.WriteStartAttribute ("xsi", "type",
+                       XmlSchema.InstanceNamespace);
+               xw.WriteQualifiedName ("JobHeader", q1);
+               xw.WriteEndAttribute ();
+               xw.WriteAttributeString ("soap", "actor", soap, "");
+               xw.WriteEndElement ();
+               xw.WriteEndElement ();
+               xw.WriteStartElement ("soap", "Body", soap);
+               xw.WriteAttributeString ("soap", "encodingStyle", soap,
+                       "http://schemas.xmlsoap.org/soap/encoding/";);
+               xw.WriteStartElement ("q1", "addMedia", q1);
+               xw.WriteEndElement ();
+               xw.WriteEndElement ();
+               xw.WriteEndElement ();
+       }
+}
+
+
+<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=""
+xmlns:q1="urn:theplatform-com:v4/base/" />
+    </JobHeader>
+    <soap:Body
+soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
+      <q1:addMedia xmlns:q1="urn:theplatform-com:v4/base/" />
+    </soap:Body>
+  </soap:Header>
+
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to