[Mono-bugs] [Bug 79989][Nor] New - hexBinary XML Schema type unsupported (sending)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Nov 20 07:38:21 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=79989

--- shadow/79989	2006-11-20 07:38:21.000000000 -0500
+++ shadow/79989.tmp.5413	2006-11-20 07:38:21.000000000 -0500
@@ -0,0 +1,101 @@
+Bug#: 79989
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: pawel.sakowski at mindbreeze.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: hexBinary XML Schema type unsupported (sending)
+
+Description of Problem:
+xsi:hexBinary isn't supported.
+
+Steps to reproduce the problem:
+1. Set up a HTTP server where you can observe the request ("nc -l -p 5555"
+is enough).
+
+2. Invoke the following code:
+
+    using System.Web.Services;
+    using System.Web.Services.Protocols;
+    using System;
+    using System.Xml.Serialization;
+
+   
+[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";
+            byte[] a = s.Req(new byte[5]).output;
+            Console.WriteLine(a.Length);
+        }
+
+        /// <remarks/>
+        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)]
+        [return: System.Xml.Serialization.XmlElementAttribute("elem")]
+        public RespElem
+Req([System.Xml.Serialization.XmlAttributeAttribute(DataType="hexBinary")]
+byte[] data) {
+            object[] results = this.Invoke("Req", new object[] {
+                        data});
+            return ((RespElem)(results[0]));
+        }
+    }
+
+    [System.SerializableAttribute()]
+    public partial class RespElem {
+
+        private byte[] outputField;
+
+        /// <remarks/>
+        [System.Xml.Serialization.XmlAttributeAttribute(DataType="hexBinary")]
+        public byte[] output {
+            get {
+                return this.outputField;
+            }
+            set {
+                this.outputField = value;
+            }
+        }
+    }
+
+Actual Results:
+<?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:Body><Req
+data="System.Byte[]" xmlns="urn:foo" /></soap:Body></soap:Envelope>
+
+Expected Results:
+<?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:Body><Req
+data="0000000000" xmlns="urn:foo" /></soap:Body></soap:Envelope>
+
+How often does this happen? 
+100%
+
+Additional Information:
+Note the "System.Byte[]" in the actual results.


More information about the mono-bugs mailing list