Добрый день!
- На wss-gost ругается что нету SSL certificate это нормально?
- Можете подсказать мне что делаю не так
метод установка соединение и отправка данных
soapEndpointUrl - адрес wss-gost
private static void callSoapWebService(String soapEndpointUrl) {
SOAPConnection soapConnection = null;
try {
// Create SOAP Connection
SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance();
soapConnection = soapConnectionFactory.createConnection();
SOAPMessage soapRequest = createSOAPRequest();
// Send SOAP Message to SOAP Server
SOAPMessage soapResponse = soapConnection.call(soapRequest, soapEndpointUrl);
// Print the SOAP Response
System.out.println("Response SOAP Message:");
soapResponse.writeTo(System.out);
System.out.println();
} catch (Exception e) {
e.printStackTrace();
} finally {
if (soapConnection != null) {
try {
soapConnection.close();
} catch (SOAPException e) {
e.printStackTrace();
}
}
}
}
Лог
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0009: Message send failed
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Message send failed
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:149)
at SignWssSec.callSoapWebService(SignWssSec.java:196)
at SignWssSec.main(SignWssSec.java:100)