Select to view content in your preferred language

ConvertWebMapToMapDocument problem/bug ?

791
1
11-13-2012 04:56 AM
SzymonPiskula
Deactivated User
Hi,

Im using 'ConvertWebMapToMapDocument' to generate PDFs. The 'Web_Map_as_JSON' parameter has the 'operationalLayers' section in which each layer has it's url assigned.

Now because i need to get to some of the layers through a proxy to get the token I'd like to pass the url in such form:

"url":"http://localhost:32762/AGSProxy.ashx?http://localhost:6080/arcgis/rest/services/RSPB/Assemblages/MapServer"


but each layer that has the proxy embedded in the URL does not appear in the output file.

I do have a proxy (AGSProxy.ashx) that allows loading layers with urls in form as presented above (works OK for SL API3.0). Whenever SL viewer tries to access a layer via the proxy it does hit the breakpoint with debugger so I am sure this is reached.

But if I run the PDF generation based on 'ConvertWebMapToMapDocument' the proxy with breakpoints set is never hit. This makes me think that there exists some sort of URL validation within implementation of 'ConvertWebMapToMapDocument' that does not allow calling my proxy.

Is this a bug or a feature?

Thanks,
Szymon
Tags (2)
0 Kudos
1 Reply
JeffMoulds
Esri Contributor
We tested this with ArcGIS Server configured to use a proxy and it worked. However, in our case, you did not have to include the url to the proxy server as part of the service url, you just need the regular url to the service.

Can you give me some more information as to why you are including the proxy as part of the url? How is your proxy server configured?

Are they secured services that require a user name and password to view?
0 Kudos