This example demonstrates how to call a SOAP service from Natural, using the REQUST DOCUMENT statement, it then parses the output with the PARSE XML statement and presents a formatted view of the response.
The code is cross-platform, it works on both mainframe Natural as well as OpenSystems / LUW Natural alike.
Service used: http://www.webservicex.net/globalweather.asmx
Input asked for by the Natural program: City, Country
Output: weather details for the selected City + Country, or an error response