java - Axis 2 webservice SSL communication -
i getting soap response code
soapconnectionfactory sfc = soapconnectionfactory.newinstance(); soapconnection connection = sfc.createconnection(); soapmessage soapmessageresponse = connection.call(soaprequest, new url(servicelocation)); how can make ssl based?
i know how create sslsocketfactory sslcontext giving specified keystore.
how can tell soapconnection class sslsocketfactory or sslcontext? communication can secured.
i not want set keystore in system property or xml file. using websphere 7.
edit:
caused by: java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:48) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:600) @ com.ibm.ws.webservices.engine.soap.soapconnectionimpl.calljaxwsdispatch(soapconnectionimpl.java:416) ... 49 more caused by: javax.xml.soap.soapexception: javax.xml.ws.webserviceexception: javax.net.ssl.sslhandshakeexception: general sslengine problem @ com.ibm.ws.webservices.engine.xmlsoap.saaj13only.soapconnectionjaxws.call(soapconnectionjaxws.java:72) ... 54 more caused by: javax.xml.ws.webserviceexception: javax.net.ssl.sslhandshakeexception: general sslengine problem
log in admin console , add certificate via ssl certificate , key management > ssl configurations > nodedefaultsslsettings > key stores , certificates > nodedefaulttruststore > signer certificates
Comments
Post a Comment