[Mono-bugs] [Bug 53117][Wis] New - Exception thrown from web service does not thrown in client side.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Jan 2004 09:45:52 -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 erand@mainsoft.com.
http://bugzilla.ximian.com/show_bug.cgi?id=53117
--- shadow/53117 2004-01-20 09:45:52.000000000 -0500
+++ shadow/53117.tmp.19601 2004-01-20 09:45:52.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 53117
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.Web.Services
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: erand@mainsoft.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Exception thrown from web service does not thrown in client side.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+If a web service throws an exception you should be able to catch it in the
+client side. But the exception is not thrown in the client side.
+
+Steps to reproduce the problem:
+1. Deploy the attached Service1.asmx file.
+2. Consume the webservice from a simple client in try catch block.
+
+Actual Results:
+No exception is thrown.
+
+
+Expected Results:
+SoapException should be thrown.
+
+How often does this happen?
+Always.
+
+Additional Information:
+I think the serialize and deserialize of
+System.Web.Services.Protocols.Fault is incorrect. The namespace of the
+fault element is empty string instead of
+http://schemas.xmlsoap.org/soap/envelope/. The xml produced for the Fault
+element is
+<Fault>
+ <soap:faultcode>soap:Server</soap:faultcode>
+ <soap:faultstring>This is test exception</soap:faultstring>
+</Fault>
+And I think it should be something like
+<soap:Fault>
+ <faultcode>soap:Server</soap:faultcode>
+ <faultstring>This is test exception</soap:faultstring>
+</soap:Fault>