// Ask National Weather Service for Latitude and Longitude of zipcode 90210
var wsdl = SoapService.wsdl("http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl");
var ndfdXML = wsdl.getService("ndfdXML");
var latLonOp = ndfdXML.getOperation("LatLonListZipCode");
latLonOp.setEndpointOverride("http://www.example.com");
Browser.msgBox(latLonOp.getEndpointOverride());
// Ask National Weather Service for Latitude and Longitude of zipcode 90210
var wsdl = SoapService.wsdl("http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl");
var ndfdXML = wsdl.getService("ndfdXML");
var latLonOp = ndfdXML.getOperation("LatLonListZipCode");
var env = latLonOp.getSoapEnvelope("90210");
// Ask National Weather Service for Latitude and Longitude of zipcode 90210
var wsdl = SoapService.wsdl("http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl");
var ndfdXML = wsdl.getService("ndfdXML");
var latLonOp = ndfdXML.getOperation("LatLonListZipCode");
var res = latLonOp.invokeOperation(["90210"]);
サンプル :
// Ask National Weather Service for Latitude and Longitude of zipcode 90210
// Use the short hand, dynamically generated 'invoke' method (LatLonListZipCode in this case)
var wsdl = SoapService.wsdl("http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl");
var ndfdXML = wsdl.getService("ndfdXML");
var res = ndfdXML.LatLonListZipCode("90210");
サンプル :
// Ask National Weather Service for the ndfdXML Service
// Use the short hand, dynamically generate getService method and the dynamically generate invocation.
wsdl = SoapService.wsdl("http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl");
var ndfdXML = wsdl.getndfdXML();
var res = ndfdXML.LatLonListZipCode("90210");
// Ask National Weather Service for Latitude and Longitude of zipcode 90210
var wsdl = SoapService.wsdl("http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl");
var ndfdXML = wsdl.getService("ndfdXML");
var latLonOp = ndfdXML.getOperation("LatLonListZipCode");
latLonOp.setEndpointOverride("http://www.example.com");
var res = latLonOp.invokeOperation(["90210"]);