[Mono-bugs] [Bug 57420][Nor] New - "Missing SOAPAction header"-Exception on calling WebMethods over mod_mono

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 22 Apr 2004 10:21:52 -0400 (EDT)


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 gustav-w-s@online.de.

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

--- shadow/57420	2004-04-22 10:21:52.000000000 -0400
+++ shadow/57420.tmp.11310	2004-04-22 10:21:52.000000000 -0400
@@ -0,0 +1,85 @@
+Bug#: 57420
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gustav-w-s@online.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: "Missing SOAPAction header"-Exception on calling WebMethods over mod_mono
+
+Description of Problem:
+Calling a web method out of a program / asp-page throws a SoapException: 
+"Missing SOAPAction header" if you use mod_mono with xsp > 0.9.
+This does not happen if you use xsp as web server.
+
+
+Steps to reproduce the problem:
+1. Create a web service, for example test.asmx:
+-----------------------
+<%@ WebService Language="c#" Class="TestService" %>
+
+using System;
+using System.Web;
+using System.Web.Services;
+
+[WebService]
+public class TestService : System.Web.Services.WebService
+{
+        [WebMethod]
+        public string ReturnHello()
+        {
+                return "Hello";
+        }
+}
+-----------------------
+2. Create a program which uses the web service:
+-----------------------
+using System;
+
+class Test
+{
+        public static void Main()
+        {
+                TestService service = new TestService();
+                Console.WriteLine(service.ReturnHello());
+        }
+}
+-----------------------
+3. Compile the test program and try to run it. Use Apache with mod_mono and 
+xsp-0.11
+
+Actual Results:
+Unhandled Exception: System.Web.Services.Protocols.SoapException: Missing 
+SOAPAction header
+in <0x004de> System.Web.Services.Protocols.SoapHttpClientProtocol:
+ReceiveResponse (System.Net.WebResponse,System.Web.Services.Protocols.
+SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
+in <0x0007d> (wrapper remoting-invoke-with-check) System.Web.Services.
+Protocols.SoapHttpClientProtocol:ReceiveResponse (System.Net.WebResponse,
+System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.
+Protocols.SoapExtension[])
+in <0x002d8> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke 
+(string,object[])
+in <0x0006b> (wrapper remoting-invoke-with-check) System.Web.Services.
+Protocols.SoapHttpClientProtocol:Invoke (string,object[])
+in <0x00036> TestService:ReturnHello ()
+in <0x00031> Test:Main ()
+
+Expected Results:
+"Hello"
+
+How often does this happen? 
+always
+
+Additional Information:
+The web service gets called correctly if mod_mono with xsp-0.9 is used.
+I'll attach the test case.