When using my axis client in HTTP, my code works just fine, but as soon as I use an HTTPS endpoint, I get the following stack trace
Caused by: org.apache.axis2.AxisFault: An unknown transport called https exists.
at org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:119) ~[axis2-kernel.jar:1.5.4]
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:183) ~[axis2-kernel.jar:1.5.4]
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) ~[axis2-kernel.jar:1.5.4]
at com.vodafone.gdsp.ws.SubmitSMSv2ServiceStub.submitSMSv2(SubmitSMSv2ServiceStub.java:193) ~[vodafonews.jar:?]
at com.trilliantnetworks.vodafone.services.CallVodafoneServices.submitSMSv2(CallVodafoneServices.java:447) ~[vodafonews.jar:?]
... 21 more
Here's the HTTP client configuration
HttpClientParams httpClientParams = new HttpClientParams();
httpClientParams.setConnectionManagerTimeout(10000L);
HttpClient client = new HttpClient(httpClientParams, conMgr);
context.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, client);
context.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE);
context.setProperty(HTTPConstants.AUTO_RELEASE_CONNECTION, Boolean.TRUE);
Here's the code I'm using before making a call
// Enabling auto cleanup & activating asynchronous connection handler
serviceStub._getServiceClient().getOptions().setCallTransportCleanup(true);
serviceStub._getServiceClient().getOptions().setUseSeparateListener(true);
serviceStub._getServiceClient().engageModule("addressing");
// Executing a cleanup of the connection before using it in case.
serviceStub._getServiceClient().cleanup();
serviceStub._getServiceClient().cleanupTransport();
There is not much documentation about this, does anyone see what I'm doing wrong here?