Any sample of how to call a web service

891
3
04-18-2014 05:58 AM
JoseSanchez
Occasional Contributor III
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
New Contributor III
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
Occasional Contributor III
Hi Brad,

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

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