Webservice HTTPS client running - SSL handshake confirmation - print SOAP request response data

After writing sample client and while running many a times we get confused whether actual SSL handshake is successful or not with the provided keystore and password parameters , in such cases below parameter helps understanding ssl handshake details.
-Djavax.net.debug=ssl

Sample run command :

java -Djavax.net.ssl.trustStore=/spl/etc/iscks.jks -Djavax.net.ssl.trustStorePassword=csi123 -Djavax.net.ssl.keyStore=/lps/etc/iscks.jks -Djavax.net.ssl.keyStorePassword=csi123 -Djavax.net.debug=ssl spl.isc.ISCWebServiceClient


And another common problem is that we want to see how soap request and response is happening .

in such case use the below java code in the client to see how soap request and response happens
-Djavax.net.debug=ssl

Other way :  with in java client code.
System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");
System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");
System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");
System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true"); 


0 comments to "Webservice HTTPS client running - SSL handshake confirmation - print SOAP request response data"

Post a Comment

Whoever writes Inappropriate/Vulgar comments to context, generally want to be anonymous …So I hope U r not the one like that?
For lazy logs, u can at least use Name/URL option which doesn’t even require any sign-in, The good thing is that it can accept your lovely nick name also and the URL is not mandatory too.
Thanks for your patience
~Krishna(I love "Transparency")

Popular Posts

Enter your email address:

Buffs ...

Tags


Powered by WidgetsForFree

Archives