Printing Secured Service

Discussion created by jestanford on Feb 12, 2013
Latest reply on Jul 5, 2013 by mattlane86
I haven't seen a satisfactory answer to this issue but maybe somebody has some fresh ideas.

I have some secured services hosted in Server 10.1 that use long term tokens. In order to facilitate printing I published a custom Export Web Map tool according to these instructions - Printing maps that contain secured services .

I can successfully use this custom service to print map containing all unsecured layers but as soon as I add a layer from the secured service I get: {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool."]}}.

If I paste all of the same parameters into the REST Service Directory interface I receive the same error, so I don't think it's a problem with the proxy page.

Here is the content of the Web_Map_as_JSON parameter:

I'm using the same token to add the layers to the map and am having no display problems.

Not sure what to troubleshoot next. Any ideas?