Service Virtualization

 View Only
  • 1.  webservice peer authentication error

    Posted Jan 14, 2016 03:33 AM

    Upon executing the web service from web service step , getting the following error. This same keystore when used in soapUI tool, its working fine. I am using LISA 7.5.1

     

    Failure Response:

    <?xml version="1.0" encoding="UTF-8"?>

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      <soapenv:Body>

        <soapenv:Fault>

          <faultcode>soapenv:Server.userException</faultcode>

          <faultstring>javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated</faultstring>

          <detail>

            <ns1:stackTrace xmlns:ns1="javax.net.ssl.SSLPeerUnverifiedException" rel="nofollow" target="_blank">http://xml.apache.org/axis/">javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

    at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)

    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)

    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)

    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)

    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)

    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)

    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)

    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)

    at com.itko.lisa.ws.axis.LisaHTTPSender.doInvoke(LisaHTTPSender.java:496)

    at com.itko.lisa.ws.axis.LisaHTTPSender.invoke(LisaHTTPSender.java:274)

    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2837)

    at org.apache.axis.client.Call.invoke(Call.java:2820)

    at com.itko.lisa.ws.nx.NxWSStep.executeCall(NxWSStep.java:383)

    at com.itko.lisa.ws.nx.NxWSStep.execute(NxWSStep.java:287)

    at com.itko.lisa.ws.nx.ui.NxWSStepEditor$6.run(NxWSStepEditor.java:599)</ns1:stackTrace>

            <ns2:hostname xmlns:ns2="ATC-NA-9773</ns2:hostname" rel="nofollow" target="_blank">http://xml.apache.org/axis/">ATC-NA-9773</ns2:hostname>

          </detail>

        </soapenv:Fault>

      </soapenv:Body>

    </soapenv:Envelope>



  • 2.  Re: webservice peer authentication error

    Posted Mar 17, 2017 08:22 AM

    Firstly, soapUI really does not care too much about the SSL connection, since it is focused on the message rather than the system, and therefore has a relatively open trust model.

     

    Lisa/DevTest, however, does not share this focus. That said, there are many reasons why one might receive this error, and you will need to enable some more logging at the Java level to help you identify what is going on.

     

    Assuming that you are running the step from the Workstation, try adding the following on a line of its own to the Workstation.vmoptions file

     

    -Djavax.net.debug=all

     

    This will enable some quite verbose logging at the connection level  - you will be able to find this in the workstation log file in listatmp.

     

       Dave.