Error executing tool.: Layer "ArcGISDynamicMapServiceLayer405": Unable to connect to map server at [...Web map URL with token written here......] Failed to execute (ExportWebMap). Failed to execute (Export Web Map)
- send via HTTP and POST using the REST API because there is no PrintParamaters.fromJSON yet 🙂
Thanks for replying my thread. At least I am not the only one having this problem now. Would you please keep me update if you able to get it to works. I really appreciated that. Do you think have to do anything on the proxy file too? I run all my secured map services on 10.1 and everything is working find except the printTask. I also run a esri high-quality printing simple code (https://developers.arcgis.com/en/flex/sample-code/printtask.htm) then change url & secure gp sevices to my own services and get the same message. Really spending alot of time on it and didn't find any documents or ways from ESRI team. Just wonder is it a PrintTask bug on 10.1 or not many people using this function at all?
I am not using long term token and just asked ESRI support for this problem.
You mentioned this on your previous post "If this is not an option for you, you could call PrintParameters.toJSON() and then remove the token from the url in the JSON. You'd then need to use a Geoprocessor to call your print service with the modified JSON"
Can you show me how do you get the code to work on print task widget? I would like to give this a try too.
Really appreciate your help.
Thanks.