Select to view content in your preferred language

ArcGIS Java Web Services 10.1

3132
3
Jump to solution
04-25-2013 10:49 PM
KiranSomarapu
New Contributor
How do we set the proxy settings (of Proxy Server) in the java code when using the ArcGIS Java Webservices runtime jars to make a SOAP request to http://services.arcgisonline.com/ArcGIS/services/World_Imagery/MapServer? on a JEE server.

The below java code that sets the proxy system properties works with generated IBM JAX-RPC webservice but doesn't seem to work with ArcGIS (10.1) Java Webservices runtime jars:

System.setProperty("http.noProxyHosts", "*.xxx.com");
System.setProperty("http.auth.preference","Basic");
System.setProperty("http.proxyHost", "nameOfProxyHostServer");
System.setProperty("http.proxyPort", "8080");
System.setProperty("http.proxyUser", "kulja");
System.setProperty("http.proxyPassword", "simsim");
Authenticator.setDefault(new xxxAuthenticator());

Getting the below error when using ArcGIS (10.1) Java Webservices runtime jars:
activation.jar
arcgis_agsws_stubs.jar
arcgis_ws_runtime.jar
commons-codec-1.3.jar
commons-httpclient-3.0.1.jar
commons-logging-1.0.4.jar
jaxb-api.jar
jaxb-impl.jar
jsr173_1.0_api.jar

2013-04-25 22:32:14,345 ERROR [main] getMap - Exception while attempting to export map image
com.esri.arcgisws.runtime.exception.ArcGISWebServiceException: HTTP status code {407 - Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )} received from server
at com.esri.arcgisws.runtime.WebServiceProxyImpl.dispatchRequest(Unknown Source)
at com.esri.arcgisws.runtime.WebServiceProxyImpl.dispatchRequest(Unknown Source)
at com.esri.arcgisws.MapServerBindingStub.getDefaultMapName(MapServerBindingStub.java:268)
0 Kudos
1 Solution

Accepted Solutions
EricBader
Regular Contributor II
Hello Kiran:

Try this one: http://forums.arcgis.com/forums/10-ArcGIS-Server-(10.0-and-prior)-Java.

This will be a more promising forum for your post, we hope!

Thanks!

View solution in original post

0 Kudos
3 Replies
MarkBaird
Esri Regular Contributor
Hi

I might need to move your post so you can get a better answer as this forum is for native runtime apps.

Looking at your error messages I think you might be using Web ADF for java but correct me if I've got that wrong.

Let me know and we will get you some help.

Thanks

Mark
0 Kudos
KiranSomarapu
New Contributor
Hello Mark,

I am using ArcGIS Java Webservices jars that ESRI provides to make SOAP calls to the ArcGIS services on the Server from Java code running on a Jave Enterprise Edition Server.

I couldn't find a specific forum for ArcGIS Java Webservices (using ArcGIS Server 10.1), but do move it if there is a more appropriate forum so that I can get help on this.

Thanks,
Kiran
0 Kudos
EricBader
Regular Contributor II
Hello Kiran:

Try this one: http://forums.arcgis.com/forums/10-ArcGIS-Server-(10.0-and-prior)-Java.

This will be a more promising forum for your post, we hope!

Thanks!
0 Kudos