[Mono-bugs] [Bug 81701][Nor] Changed - Fix to allow HttpClientChannel to connect to xsp2 using https

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 22 15:12:02 EDT 2007


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 admin at svwebhosting.com.

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

--- shadow/81701	2007-05-22 04:01:15.000000000 -0400
+++ shadow/81701.tmp.16566	2007-05-22 15:12:02.000000000 -0400
@@ -47,6 +47,35 @@
     public MBR Test ()
     {
         return new MBR ();
     }
 }
 
+
+------- Additional Comments From admin at svwebhosting.com  2007-05-22 15:12 -------
+Changing it to URL.IndexOf ("/", 8) works when the url contains https
+and http.
+
+I have tested with the class as a wellknown service like this. I had
+to change the uri before returning the object because the client tries
+to use http by default.
+
+MBR mbr = (MBR)Activator.GetObject(typeof(MBR),
+"https://x.x.x.x:1234/mbr.soap");
+MBR mbr2 = mbr.Test();
+mbr2.Hello();
+
+
+public class MBR : MarshalByRefObject
+{
+    public MBR Test(){
+        MBR obj = new MBR();
+        System.Runtime.Remoting.ObjRef remobj =
+System.Runtime.Remoting.RemotingServices.Marshal(obj);
+        remobj.URI = "https://x.x.x.x:1234/" + remobj.URI;
+        return obj;
+    }
+
+    public string Hello(){
+        return "hello";
+    }
+}


More information about the mono-bugs mailing list