var locatorUrl = "http://servicesbeta.esri.com/ArcGIS/rest/services/LocateValveByAssetID/GeocodeServer";
Hi there,
this sample should help you.
Where it saysvar locatorUrl = "http://servicesbeta.esri.com/ArcGIS/rest/services/LocateValveByAssetID/GeocodeServer";
just put the URL to your service and it should work.
Tim
You would need to have Arc Server to be able to use it in your application. See here.