[Mono-bugs] [Bug 42122][Nor] Changed - StackFrame not always acurrate.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 29 Apr 2003 22:53:02 -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 miguel@ximian.com.

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

--- shadow/42122	Tue Apr 29 22:39:29 2003
+++ shadow/42122.tmp.28465	Tue Apr 29 22:53:02 2003
@@ -50,6 +50,42 @@
 Service1.HelloWorld
 
 this is important because we need it for Soap.
 
 ------- Additional Comments From miguel@ximian.com  2003-04-29 22:39 -------
 Update milestone.
+
+------- Additional Comments From miguel@ximian.com  2003-04-29 22:53 -------
+You can get this error by calling the DumpStackFrames method in
+System.Web.Services.Protocols/SoapHttpClientProtocol from the method
+`GetCallerMethod'.
+
+Add that, recompile, reinstall, and compile and run this little program:
+
+using System;
+using System.Web.Services;
+using System.Web.Services.Protocols;
+
+public class Service1 :
+System.Web.Services.Protocols.SoapHttpClientProtocol {
+
+	public Service1 ()
+	{
+		this.Url = "http://localhost/HelloWorld/Service1";
+	}
+	
+	[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/" , ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
+		
+	public string HelloWorld(string msg) {
+		object[] results = this.Invoke("HelloWorld", new object[] {msg});
+		return ((string)(results[0]));
+	}
+}
+	
+class X {
+
+	static void Main () {
+		Service1 s = new Service1 ();
+		s.HelloWorld ("hello");
+	}
+}
+