Select to view content in your preferred language

Any sample of how to call a web service

1012
3
04-18-2014 05:58 AM
JoseSanchez
Frequent Contributor
Hi all

Is there any template that consumes web services?


How to consume a web service from a geoprocessing service?

Thanks
0 Kudos
3 Replies
BradleySnider
Deactivated User
Hi Jose,

Do you mean an Esri ArcGIS Online (AGOL) web map, or services that you are hosting on ArcGIS Server? 


For AGOL, please see the following link: https://developers.arcgis.com/javascript/jssamples/ags_createwebmapid.html

For general map samples, see: https://developers.arcgis.com/javascript/jssamples/

Here is an example using the geoprocessor class: https://developers.arcgis.com/javascript/jssamples/gp_viewshed.html

I hope this helps!

Brad
0 Kudos
JoseSanchez
Frequent Contributor
Hi Brad,

I am looking for samples in how to call a regular SOAP service

thanks
0 Kudos
MattLane
Frequent Contributor
You can use the esri.request class to access standard web services
https://developers.arcgis.com/javascript/jsapi/esri.request-amd.html
0 Kudos