AGS 10.1, Export Web Map error "Token-based authentication failure" on Image service

4136
3
03-03-2014 05:02 AM
francescocoletta
New Contributor
Hi all,
on my AGS 10.1 I have defined the following type of services:
- "Map service" for publish vectorial data
- "Image service" for publish raster data
- "Export Web Map" for generate printable stuff

the environment:
- Window Server 2008 R2 Enterprise
- ArcGIS SERVER 10.1 SP1 + sp1 quality improvement patch


With aforementioned configuration, without security, i have submitted job to  "Export Web Map" (by means http://<ags server>:6080/arcgis/rest/services/<my export web map service>/GPServer/Export Web Map/submitJob) obtaining printable pdf of current map that includes vectorial (Map service) and raster (Image service) layer.

Then i've activated the security, with same roles and user for both "Map service" and "Image Service".
Note that also the "Export Web Map" has been secured with same roles and user.

For access to "Map service" and "Image Service" I've  generate a short-term token by means:
http://<ags server>:6080/arcgis/tokens?request=gettoken&encrypted=false&username=<user>&password=<password>

Then i've resubmitted the same previous job (again by means http://<ags server>:6080/arcgis/rest/services/<my export web map service>/GPServer/Export Web Map/submitJob) using the short-term token previously generated.

If i put into parameter "Web Map as JSON" only "Map service"  layers, of course with token,   i gets the printable pdf.
Putting into parameter "Web Map as JSON" both "Map service" and "Image Service", specifying


Then i've resubmitted the same previous job (again by means http://<ags server>:6080/arcgis/rest/services/<my export web map service>/GPServer/Export Web Map/submitJob) using the short-term token previously generated.

If i put into parameter "Web Map as JSON" only "Map service"  layers, of course with token,   i gets the printable pdf.
Putting into parameter "Web Map as JSON" both "Map service" and "Image Service", specifying always the token,  i gets the printable pdf without the "Image Service", and into log of AGS i can read "<name of Image Service>:Token-based authentication failure".
Disabling the security on "Image Service" and re-run the job "Export Web Map", putting the token only for vectorial data, i gets pdf this time with raster and vectorial togheter.

Does anyone have any idea for this behavior?

Thanks.

Francesco
Tags (2)
0 Kudos
3 Replies
JonathanQuinn
Esri Notable Contributor
See my post from your other thread.
0 Kudos
francescocoletta
New Contributor
Thanks

Francesco

See my post from your other thread.
0 Kudos
TanuHoque
Esri Regular Contributor
0 Kudos