Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

Call a web service to get the temperature in a Zip code

Call a web service to get the temperature in a Zip code

  • Last UpdatedJul 22, 2024
  • 1 minute read

Note: This sample script includes a reference to a public website as an example. You may need to replace that URL with a current and verified URL.

' Requires input string uda me.zipcode and output float uda me.temperature.

' First, generate a wrapper for the web service (.Net SDK must be installed).

' To generate wrapper, run the following commands from the DOS prompt:

' set path=%path%;C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin

' wsdl http://www.vbws.com/services/weatherretriever.asmx

' csc /target:library WeatherRetriever.cs

' Next import the generated WeatherRetriever.dll library into your galaxy.

' Now write your script:

dim wr as WeatherRetriever;

wr = new WeatherRetriever;

me.temperature = wr.GetTemperature(me.zipcode);

TitleResults for “How to create a CRG?”Also Available in