[Mono-bugs] [Bug 60881][Nor] New - SoapException when invoking a method of one popular Web service

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 29 Jun 2004 09:42:01 -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 larom@mail.ru.

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

--- shadow/60881	2004-06-29 09:42:01.000000000 -0400
+++ shadow/60881.tmp.934	2004-06-29 09:42:01.000000000 -0400
@@ -0,0 +1,96 @@
+Bug#: 60881
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: ASP Linux 9.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web.Services
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: larom@mail.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SoapException when invoking a method of one popular Web service
+
+I've written a simple console application to test ArcWeb services 
+(provided by ESRI, http://arcweb.esri.com). I used one method of the 
+Authentication service (WSDL for it is here 
+http://arcweb.esri.com/services/v2/Authentication.wsdl) and I 
+generated .cs file for that WSDL using standart wsdl.exe tool included in 
+Mono package.
+
+The whole application's code is
+//--------------------------------
+using System;
+
+class MainClass
+{
+	public static void Main(string[] args)
+	{
+		try
+		{
+			Authentication auth = new Authentication();
+		
+			if (auth == null)
+			{
+				throw new Exception("auth == null !");
+			}
+			
+			string strToken = auth.getToken("abc", "efg", 60);
+		}
+		catch (Exception ex)
+		{
+			Console.WriteLine("Exception = " + ex.ToString());
+		}
+	}
+}
+//-----------------------------
+
+Every time after invoking getToken(...) method of Authentication web 
+servive I'm getting the same exception (see below). In method getToken
+(...) first and second parameters are username and password but in this 
+case it doesn't depend if it's valid user/password or not - every time I'm 
+still getting the same exception.
+I've compiled the same application in Visual Studio (in Windows OS) and 
+run it - everything works fine. By the way, in that case if I'll pass 
+wrong username/password then I'll get corresponding exception form web 
+service (System.Web.Services.Protocols.SoapException: 1004: Invalid 
+username, cannot generate a token.) so the problem is not in validity of 
+username and password.
+ 
+This is the exception which I'm getting
+--------------------------------
+Exception = System.Web.Services.Protocols.SoapException: getToken1
+in [0x001a3] 
+(at /cvs/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHt
+tpClientProtocol.cs:274) 
+System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse 
+(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,Sys
+tem.Web.Services.Protocols.SoapExtension[])
+in <0x00080> (wrapper remoting-invoke-with-check) 
+System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse 
+(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,Sys
+tem.Web.Services.Protocols.SoapExtension[])
+in [0x000bc] 
+(at /cvs/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHt
+tpClientProtocol.cs:301) 
+System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke (string,object
+[])
+in <0x0006f> (wrapper remoting-invoke-with-check) 
+System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke (string,object
+[])
+in [0x0001d] (at /home/Tenek/test/WSClientAuth/Reference.cs:78) 
+Authentication:getToken (string,string,int)
+in [0x0004d] (at /home/Tenek/test/WSClientAuth/Main.cs:24) MainClass:Main 
+(string[])
+--------------------------------
+
+I'm using Mono 1.0 Beta 2
+mod_mono 0.10
+Apache 2.0.49
+MonoDevelop 0.4
+RedHat 9.0 (ASP Linux 9.0)