Consuming SOAP web services in GeneXus

Unofficial Content

Let's suppose that we need to consume the following SOAP web service in our GeneXus application:

http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL

To consume it in GeneXus:

1. Open the WSDL Import Wizard:

OpenWSDLInspector

2. Inspect the web service's WSDL and import it:

Step 1

WSDLInspector1

Step 2

WSDLInspector2

Step 3

WSDLInspector3

3. Use it in your GeneXus object:

&CountryISOCode = &CountryInfoService.LanguageISOCode("Uruguay")

where:

&CountryInfoService is a CountryInfoService variable based on the related web service

&CountryISOCode is a Character variable