spiskulaesriuk-esridist

ConvertWebMapToMapDocument problem/bug ?

Discussion created by spiskulaesriuk-esridist Employee on Nov 13, 2012
Latest reply on Nov 29, 2012 by jmoulds-esristaff
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

Outcomes