Select to view content in your preferred language

Secure services - printing - 4 years on and still no luck

2801
2
12-17-2015 07:22 AM
AdrianMarsden
Regular Contributor II

Every few years I make an attempt to lock my services down, every few years I fail.

I go round in the same circles, but do make a little progress each time.

I've now go most things working.  The Proxy page passes through a user name and password for the services.  this even works for my loop which gets extra stuff using an esri.request.

The bit that fails now is Printing.

I've followed ArcGIS Help (10.2, 10.2.1, and 10.2.2)  but now get

Error: Unable to complete operation.

If I take the URL that I see in Fiddler, it is something like

http://My Domain for the applciation/proxy/proxy.ashx?http://My ArcGIS Server server/arcgis/rest/ser...

It seems to work - I get

{ "results": [{ "paramName": "Output_File", "dataType": "GPDataFile", "value": {"url": ""} }], "messages": [] }

If I set the Print Service to asynchronous I get similar issues to her http://stackoverflow.com/questions/12431283/esri-javascript-asynchronous-print  - but I'm not sure how to tweak the printTask.execute for aync

Any help much appreciated - this is one of my tasks I am trying to use to fill in time before the holidays.


Cheers


ACM

0 Kudos
2 Replies
MiriamBrockmann
Occasional Contributor

I think i don't understand your Question? Does the Printtask work or not?

Regards, Miriam

0 Kudos
AdrianMarsden
Regular Contributor II

No, it fails with different error depending on if the PrintService is set to sync or async - I'll try to read up on how to code for async.

0 Kudos