[Mono-bugs] [Bug 76804][Wis] New - WS over HTTPS
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Nov 23 11:33:11 EST 2005
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 pere.rodriguez.rodriguez at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76804
--- shadow/76804 2005-11-23 11:33:11.000000000 -0500
+++ shadow/76804.tmp.21430 2005-11-23 11:33:11.000000000 -0500
@@ -0,0 +1,173 @@
+Bug#: 76804
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: Debian Sarge
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System.Security
+AssignedTo: sebastien at ximian.com
+ReportedBy: pere.rodriguez.rodriguez at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: WS over HTTPS
+
+Description of Problem:
+
+I can't connect to a WS than runs over HTTPS. With Mozilla navigator I can
+connect to the WS without any warning or error. Lynx display this error:
+
+ SSL error:Can't find common name in certificate-Continue? (y)
+
+but finally it open the document.
+
+The URL of the WS is:
+ https://portalsalut.gencat.net/sic_iit/AppJava/AnularItWS.
+
+I run mozroots and import all certificates from Mozilla's LXR to my local
+machine but I still can't connect to the WS. The error from proxy class is:
+
+Error writing request.
+in [0x0015a] System.Net.WebConnectionStream:WriteRequest ()
+in [0x000e0] (at /tmp/scratch/BUILD/mono-
+1.1.9.2/mcs/class/System/System.Net/WebConnectionStream.cs:586)
+System.Net.WebConnectionStream:Close ()
+in [0x00030] (at /tmp/scratch/BUILD/mono-
+1.1.9.2/mcs/class/corlib/System.IO/StreamWriter.cs:175)
+System.IO.StreamWriter:Dispose (Boolean disposing)
+in [0x00009] (at /tmp/scratch/BUILD/mono-
+1.1.9.2/mcs/class/corlib/System.IO/StreamWriter.cs:321)
+System.IO.StreamWriter:Close ()
+in [0x00017] (at /tmp/scratch/BUILD/mono-
+1.1.9.2/mcs/class/System.XML/System.Xml/XmlTextWriter.cs:374)
+System.Xml.XmlTextWriter:Close ()
+in [0x0005e] (at /tmp/scratch/BUILD/mono-
+1.1.9.2/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHtt
+pClientProtocol.cs:228)
+System.Web.Services.Protocols.SoapHttpClientProtocol:SendRequest
+(System.IO.Stream s, System.Web.Services.Protocols.SoapClientMessage
+message, System.Web.Services.Protocols.SoapExtension[] extensions)
+in [0x00073] (at /tmp/scratch/BUILD/mono-
+1.1.9.2/mcs/class/System.Web.Services/System.Web.Services.Protocols/SoapHtt
+pClientProtocol.cs:325)
+System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke (System.String
+method_name, System.Object[] parameters)
+
+If I execute
+ mono tlstest.exe https://portalsalut.gencat.net
+I obtain this error:
+ Error #-2146762490: CERT_E_PURPOSE 0x800B0106
+
+
+Steps to reproduce the problem:
+1. Create proxy class from
+https://portalsalut.gencat.net/sic_iit/AppJava/AnularItWS?WSDL with
+namespace ICAM.Proxy.
+
+2. Change que Url of proxy class to
+https://portalsalut.gencat.net/sic_iit/AppJava/AnularItWS
+
+3. Run mozroots --import --machine
+
+4. Write a program with a function that uses WS. For example:
+-------------------------------------------------------------------------
+ private static void AnularItWS ()
+ {
+ Console.WriteLine ("Executant la petició ... ");
+
+ ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_com
+uns_vo_AnularComunicatsVO comanda =
+ new
+ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_A
+nularComunicatsVO ();
+
+ comanda.usuari = new
+ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_U
+suariVO ();
+ comanda.usuari.CODI_USUARI = "xxx";
+ comanda.usuari.CLAU_USUARI = "xxx";
+ comanda.usuari.NOM_USUARI = "Pere";
+ comanda.usuari.PRIMER_COGNOM_USUARI = "Rodríguez";
+ comanda.usuari.DNI_USUARI = "39696078";
+
+ comanda.atencioPrimaria = new
+ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_A
+tencioPrimariaAnularVO ();
+ comanda.atencioPrimaria.TIPUS_AP_COMUNICADORA = "2";
+ comanda.atencioPrimaria.CODI_AP_COMUNICADORA = "00125";
+ comanda.atencioPrimaria.COLEGIACIO = "";
+ comanda.atencioPrimaria.CODI_PROVINCIA_COLEGIAT = "";
+ comanda.atencioPrimaria.NUMERO_COLEGIAT = "";
+ comanda.atencioPrimaria.DIGIT_CONTROL_COLEGIAT = "";
+
+ comanda.ciutada = new
+ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_P
+eticioCiutadaAnularItVO ();
+ comanda.ciutada.NASS_CIUTADA = "xxxx";
+ comanda.ciutada.CIP_CIUTADA = "xxxx";
+ comanda.ciutada.DOCUMENT_ID_CIUTADA ="xxxxx";
+ comanda.ciutada.TIPUS_DOCUMENT_CIUTADA = "1";
+ comanda.ciutada.NOM_CIUTADA = "xxxxx";
+ comanda.ciutada.PRIMER_COGNOM_CIUTADA = "xxxxx";
+ comanda.ciutada.SEGON_COGNOM_CIUTADA = "xxxx";
+ comanda.ciutada.GENERE = "H";
+ comanda.ciutada.DATA_NAIXEMENT = "06/10/1972";
+// comanda.ciutada.TELEFON = "123";
+
+ comanda.episodi = new
+ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_E
+pisodiAnulacioVO ();
+ comanda.episodi.CODI_EPISODI = "341";
+ comanda.episodi.CODI_MOTIU_ANULACIO_EPI = "EE";
+
+ comanda.comunicat = new
+ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_C
+omunicatAnulacioVO[1];
+ comanda.comunicat[0] = new
+ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_C
+omunicatAnulacioVO ();
+ comanda.comunicat[0].CODI_COMUNICAT="24";
+ comanda.comunicat[0].CODI_MOTIU_ANULACIO_COM="motiu
+anul·lació";
+
+ ICAM.Proxy.AnularItWS.AnularItWS proxy = new
+ICAM.Proxy.AnularItWS.AnularItWS ();
+
+ Console.WriteLine ("Abans crida ws ...");
+
+
+ ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_com
+uns_vo_AnularComunicatsVO resposta =
+ proxy.anularComunicatsIt (comanda, "S");
+
+ Console.WriteLine ("Després crida ws ...");
+ XmlSerializer serializer = new XmlSerializer (typeof
+(ICAM.Proxy.AnularItWS.es_tsystems_icam_iit_comunicacioIndirecta_comuns_vo_
+AnularComunicatsVO));
+ serializer.Serialize (Console.Out, resposta);
+--------------------------------------------------------------------------
+ }
+4. Run the program. You can't connect to the WS.
+
+
+
+
+Actual Results:
+I can't connect to the WS.
+
+Expected Results:
+I need urgently connect to the WS.
+
+How often does this happen?
+Always.
+
+Additional Information:
+The development was over HTTP URL, and so I don't have this problem. Now
+we install the software and we know that over HTTPS ws can't run.
+
+Thanks you very much.
+I'm sorry, my english is very bad :(.
More information about the mono-bugs
mailing list