Forum Discussion

zulfiyasin's avatar
zulfiyasin
Occasional Contributor
16 years ago

Need help in accessing secure webservice

Hi,
I am new to SOAP UI. I loaded a WSDL and tried to run the below request:

   

   

zzzzzzzzz
xxxxxxxxx

     
         
         ?
     

   


I have added the end point, userid, pwd in the Service endpoints section.
But I am just not able to connect, I get a connection timed out error.
Your help would be appreciated. Thanks

Thu Oct 22 15:19:53 IST 2009:ERROR:java.lang.Exception: java.net.ConnectException: Connection timed out: connect
   java.lang.Exception: java.net.ConnectException: Connection timed out: connect
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:158)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:118)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
   Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at org.apache.commons.ssl.Java14.connectSocket(Java14.java:178)
    at org.apache.commons.ssl.Java14.buildSocket(Java14.java:157)
    at org.apache.commons.ssl.JavaImpl.createSocket(JavaImpl.java:204)
    at org.apache.commons.ssl.SSL.createSocket(SSL.java:581)
    at org.apache.commons.ssl.SSLClient.createSocket(SSLClient.java:224)
    at org.apache.commons.ssl.HttpSecureProtocol.createSocket(HttpSecureProtocol.java:90)
    at com.eviware.soapui.impl.wsdl.support.http.SoapUIEasySSLProtocolSocketFactory.createSocket(SoapUIEasySSLProtocolSocketFactory.java:44)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1401)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:153)
    ... 7 more
  • zulfiyasin's avatar
    zulfiyasin
    Occasional Contributor
    Sorry, I am not allowed to share the project file with you.

    I am trying to connect to a https:// site. Whenever I submit the request I get connection timed out error.
    I am getting correct responses for  http:// requests.

    I guess it has something to do with https:// requests.
    Please respond.
  • Hi,

    Could you try manually connecting to the server via HTTPS from the computer running soapUI? For instance, use a browser to make sure that you can open "https:///?wsdl". Please try this and let us know what happens.

    Regards,
    Dain
    eviware.com
  • zulfiyasin's avatar
    zulfiyasin
    Occasional Contributor
    Hi,

    I am able to open the wsdl directly from the browser.
    Is specifying a keystore containing the correct client certificates mandatory?

    Please reply.

    Thanks,
    Zulfi
  • Hi,

    since you are getting a connection-timeout it seems soapUI is not able to connect to the target service.. could you have a local firewall blocking the soapUI application?

    regards,

    /Ole
    eviware.com
  • zulfiyasin's avatar
    zulfiyasin
    Occasional Contributor
    HI,

    I generated a keystore using the  command(from cmd prompt).
    keytool -genkey -alias soapui -keyalg RSA -keystore .keystore.

    Used the generated keystore and password in the SSL settings.

    Then connected to the customer's network and sent a request thru soap ui
    Now SOAP UI is generating responses to the requests I send.

    Thanks for Your time..