I'm sending the following SOAP request to a webservice (I've had to star out some parts of it for privacy purposes):
The following is a stack trace of the error that I am getting and cannot work out why I am getting it, could somebody please help?
I'm pretty new to SOAP although I think it might have something to do with the fact that the xml it is using is encapsulated using <soap-env> instead of <soap12:Envelop e>. Would that cause an error or should it matter?
Code:
<?xml version="1.0" encoding="UTF-8"?> <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"> <soap-env:Header/><soap-env:Body> <GetAppList xmlns="https://***.***.***.***/***/***.asmx?op=***"> <requestId>1</requestId> <laNumber>5</laNumber> <hashCode>*******</hashCode> </GetAppList> </soap-env:Body> </soap-env:Envelope>
Code:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Could not find trusted certificate at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275) at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:528) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(DashoA6275) at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:246) at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:141) at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:114) at com.sx3.wiz.iplan.inspect.client.PlanningPortalClient$22.construct(PlanningPortalClient.java:870) at com.sx3.wiz.iplan.inspect.client.SwingWorker$2.run(SwingWorker.java:110) at java.lang.Thread.run(Thread.java:536)
I'm pretty new to SOAP although I think it might have something to do with the fact that the xml it is using is encapsulated using <soap-env> instead of <soap12:Envelop e>. Would that cause an error or should it matter?
Comment