You need to sign in to do that
Don't have an account?
javax.xml.rpc.JAXRPCException: unknown protocol: https
javax.xml.rpc.JAXRPCException: unknown protocol: https
at org.apache.axis.client.Stub._setProperty
It seems the error occurs during this call
SforceService service = new SforceService();
service.setSoapEndpointAddress(aProductionUrl);
binding = (SoapBindingStub)service.getSoap(); // error seems occur here
binding.setTimeout((bindingTimeOut*2));
private class SforceService extends SforceServiceLocator
{
public Call createCall() throws ServiceException
{
Call call = null;
try{
call = super.createCall();
call.setProperty(HTTPConstants.MC_ACCEPT_GZIP,Boolean.TRUE);
call.setProperty(HTTPConstants.MC_GZIP_REQUEST,Boolean.TRUE);
}catch (Exception ex){
ex.printStackTrace();};
return call;
}
Anyone has any suggestions? thanks
Here's the change that I made to solve this issue
Properties properties = System.getProperties();
String handler = System.getProperty("java.protocol.handler.pkgs");
if (handler == null)
{
properties.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.www2.protocol");
}else
{
properties.setProperty("java.protocol.handler.pkgs","com.ibm.net.ssl.www2.protocol".concat(handler));
}