Other option to using proxy

1007
3
Jump to solution
09-15-2014 02:34 AM
HabG_
by
Occasional Contributor

Hi All,

Is there another way of referencing geometry services or PrintTask using JavaScript other than using proxy? I want to buffer graphics and use PrintTask without using the following code.

esriConfig.defaults.io.proxyUrl = "<url_to_proxy>"

  esriConfig.defaults.io.alwaysUseProxy = false;

Thanks

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
3 Replies
HabG_
by
Occasional Contributor

Hi All,

I have managed to solve the geometry service without using proxy, just by pointing the new GeometryService to my ArcGIS Server Geometry Service URL as follows (Note that I have changed the name of my server to 'myserver').

new GeometryService("http://myserver:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer");

However, I still need help with the PrintTask. Can anyone help please?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Hab,

   To use your own print service the url would be similar:

http://myserver:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer

0 Kudos
HabG_
by
Occasional Contributor

Thanks Robert.

0 Kudos