403 error accessing ESRI WMS service through java proxy on localhost

2395
1
Jump to solution
07-24-2014 01:08 PM
EvanThoms
Occasional Contributor II

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/MapSe...

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=Ge...

What can I check next?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
EvanThoms
Occasional Contributor II

Everything works now. It seems like changes I make to the web service don't always get reflected with the first restart...

View solution in original post

0 Kudos
1 Reply
EvanThoms
Occasional Contributor II

Everything works now. It seems like changes I make to the web service don't always get reflected with the first restart...

0 Kudos