WebService Client over JMS For TIBCO EMS

Environment

TIBCO 5.8

JDK 1.6

Continue reading WebService Client over JMS For TIBCO EMS

Advertisements

HTTPS WebService Client (Skip Certificate Validation)

Using Axis2

Refer to Eclipse + Apache AXIS2 Tips

Code Snippet

SSLContext sslCtx = SSLContext.getInstance("TLSv1");
sslCtx.init(null, new TrustManager[] { new TrustAllTrustManager() }, null);

XXXStub stub = new XXXStub("https://IP:Port/...");

stub._getServiceClient()
 .getOptions()
 .setProperty(
 HTTPConstants.CUSTOM_PROTOCOL_HANDLER,
 new Protocol("https",
 (ProtocolSocketFactory) new SSLProtocolSocketFactory(sslCtx), 8443));


[response] result = stub.operator([request]);
......

Continue reading HTTPS WebService Client (Skip Certificate Validation)