ERROR
An error message may occur while making a request to an ArcWeb Service by one of these methods:1. Using the WSDL2Java command with Axis Web service toolkit to point to a URL of a WSDL on an https server. For example:
Code:2. Creating stubs using an http URL and then binding those stubs to an https URL. For example:
java org.apache.axis.wsdl.WSDL2Java
https://arcweb.esri.com/services/v2006_1/AddressFinder?wsdl
Code:The error message reads:
URL url = new URL("https://arcweb.esri.com/services/v1/Authentication");
Authentication auth = new AuthenticationLocator();
IAuthentication iauth = auth.getIAuthentication(url);
Code:
java.net.MalformedURLException: unknown protocol: https
You are using a version of the Java Developer Kit (JDK) that was released prior to JDK 1.4.
Code:
security.provider.N=com.sun.net.ssl.internal.www.protocol
Code:
Java -D java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol org.apache.axis.wsdl.WSDL2Java
https://arcweb.esri.com/services/v2006_1/AddressFinder?wsdl -p esri.aws.v2006_1.axisstubs -v
Code:
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
Article ID:000005990
Get help from ArcGIS experts
Download the Esri Support App