[Mono-bugs] [Bug 51841][Maj] Changed - Problem accessing Web Service using HTTP Basic Auth.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 5 Feb 2004 20:26:05 -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 davidandrewtaylor@hotmail.com.

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

--- shadow/51841	2004-02-05 20:24:57.000000000 -0500
+++ shadow/51841.tmp.566	2004-02-05 20:26:05.000000000 -0500
@@ -67,6 +67,47 @@
 
 ------- Additional Comments From gonzalo@ximian.com  2003-12-12 01:00 -------
 Can you attach the headers that go from/to the server in the session?
 
 ------- Additional Comments From davidandrewtaylor@hotmail.com  2004-02-05 20:24 -------
 Reopening but and will shortly post a test case.
+
+------- Additional Comments From davidandrewtaylor@hotmail.com  2004-02-05 20:26 -------
+1. Generate Proxy from this WSDL:
+wsdl 
+http://trillian.research.melbourneit.com.au/test/devicemgmt/services/
+DeviceManagement?WSDL -username:ximian -password:ximian
+
+2. Create this program:
+
+using System;
+
+public class test
+{
+    public static void Main()
+    {
+        DeviceManagementWSService service = new 
+DeviceManagementWSService();
+        // Include this next line as the URL included in the WSDL is 
+inaccurate.
+        service.Url = "http://trillian.research.melbourneit.com.au/"
+                    + "test/devicemgmt/services/DeviceManagement";
+        service.Credentials = new System.Net.NetworkCredential
+("ximian", "ximian");
+        Console.WriteLine("Starting");
+        service.getDevicesByOwner("ximian");
+	Console.WriteLine("Everything worked nicely");
+    }
+}
+
+3. Compile
+mcs *.cs /r:System.Web.Services
+
+4. Execute the program.
+
+Results on .NET:
+Program runs fine and prints out "Everything worked nicely".
+
+Results on MONO 0.30:
+Program hangs and just sits there.
+
+