2 Replies Latest reply on Apr 26, 2006 7:24 AM by 507113

    error in web client connection to a web servcie

    507113
      hi all,
      i have a web service running on https on oc4j....

      i have create a proxy client .
      when i run the test class, i have the foloowing error

      calling https://190.0.0.147:1024/CCOLWS-CCOLWebService-context-root/PWSSoapHttpPort
      WARNING: Unable to connect to URL: https://190.0.0.147:1024/CCOLWS-CCOLWebService-context-root/PWSSoapHttpPort due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
      java.rmi.RemoteException: ; nested exception is:
           HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
           at webClient.runtime.PWSSoapHttp_Stub.login(PWSSoapHttp_Stub.java:235)
           at com.eska.epps.provisioning.webservice.PWSSoapHttpPortClient.login(PWSSoapHttpPortClient.java:53)
           at com.eska.epps.provisioning.webservice.PWSSoapHttpPortClient.main(PWSSoapHttpPortClient.java:30)
      Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Cannot establish proxy connection: 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. )
           at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
           at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
           at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
           at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:144)
           at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:121)
           at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)
           at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
           at webClient.runtime.PWSSoapHttp_Stub.login(PWSSoapHttp_Stub.java:211)
           ... 2 more


      when running the web service on http, the client works fine, but the problem occured when running on https.

      i have generated the keystore file manually using keytool....

      is there any code must be add to the client.......

      i am using a session web service
        • 1. Re: error in web client connection to a web servcie
          18475
          Hello,

          Base on the HTTP error that I see HTTP-502, the error come from your proxy/firewall configuration . You are using Microsoft ISA server and it looks you need to change it sonfiguration to allows SSL with the port you have chosen (1024).

          Also be sure when you have done that you have configure correctly the client and added the client certificate to your application to allow a successful SSL handshake.

          Regards
          Tugdual Grall
          • 2. Re: error in web client connection to a web servcie
            507113
            thanx alot for you..

            but the web service is running locally on my PC, and windows firewall is disabled....

            and pls explaine in more details if you can about client certificate...and how i can add it in my application....? i did a certificate using keytool and i add it it to the server.....in OC4J......