AnsweredAssumed Answered

403 error accessing ESRI WMS service through java proxy on localhost

Question asked by ethoms on Jul 24, 2014
Latest reply on Jul 31, 2014 by ethoms

When I go to:

http://localhost:8080/Java/proxy.jsp?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson

 

I get a list of services, so it appears I have set up the proxy correctly (per instructions at the GitHub resource-proxy page)

 

But when I go to:

http://localhost:8080/Java/proxy.jsp?http://sampleserver1.arcgisonline.com/…esCitiesRivers_USA/MapServer/WMSServer?SERVICE=WMS&REQUEST=GetCapabilities

 

which is the extra WMS layer in the WMS layer | ArcGIS API for JavaScript sample, I get the error:

{"error": {"code": 403,"details": ["The proxy tried to resolve a prohibited or malformed URL. The server does not meet one of the preconditions that the requester put on the request."], "message": "403 - Forbidden: Access is denied."}}

 

That is, it looks like I am hitting the ESRI server, but something is wrong on my end.

 

I do get a list of capabilities, though, when I go straight to http://sampleserver1.arcgisonline.com/…esCitiesRivers_USA/MapServer/WMSServer?SERVICE=WMS&REQUEST=GetCapabilities

 

What can I check next?

Outcomes