[Mono-bugs] [Bug 70457][Maj] New - Error accessing web service

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Dec 2004 04:08:06 -0500 (EST)


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 gonzalo@ximian.com.

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

--- shadow/70457	2004-12-11 04:08:06.000000000 -0500
+++ shadow/70457.tmp.15602	2004-12-11 04:08:06.000000000 -0500
@@ -0,0 +1,50 @@
+Bug#: 70457
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error accessing web service
+
+As reported by Neale in mono-devel, compiling this program together with
+the source file that wsdl generates for ConverterService.asmx fails:
+---
+using System;
+using System.Web.Services;
+
+class sample {
+
+        static void Main ()
+        {
+                double result;
+
+                ConverterService service = new ConverterService();
+                service.Login("neale");
+                result = service.Convert("USD","GBP",1.0);
+                Console.WriteLine("{0}",result.ToString());
+        }
+}
+---
+The error is:
+Unhandled Exception: System.Xml.XmlException: Text node cannot appear in
+this state.  Line 1, position 1.
+in <0x00045> System.Xml.XmlTextReader:ReadText (bool)
+in <0x00246> System.Xml.XmlTextReader:ReadContent ()
+in <0x0012b> System.Xml.XmlTextReader:Read ()
+in <0x0007a> System.Xml.XmlReader:MoveToContent ()
+in <0x00014> System.Web.Services.Protocols.WebServiceHelper:ReadSoapMessage
+(System.Xml.XmlTextReader,System.Web.Services.Protocols.SoapTypeStubInfo,System.Web.Services.Description.SoapBindingUse,System.Xml.Serialization.XmlSerializer,object&,System.Web.Services.Protocols.SoapHeaderCollection&)
+.....
+----
+
+----