OutSystems provides extensive support for consuming SOAP Web Services with WSDL 1.1 and SOAP 1.1.
To consume a SOAP Web Service in your application, do the following:
- In the Logic tab, open the Integrations folder;
- Right-click the SOAP element and select Consume SOAP Web Service...:
- In the displayed dialog, specify the URL Address where the Web Service definition (WSDL) can be found:
You must provide the URL address in exactly the same way as you would type it into your Web browser.
Alternatively, you can import a WSDL from your file system, by specifying
file:///<filesystem path to wsdl>.
When you consume a SOAP Web Service, OutSystems does the following for you:
- Creates the SOAP Web Service;
- Creates the exposed Web Service Methods with the corresponding input and output parameters;
- Creates the Structures to hold the complex types defined in the WSDL.
- Maps the XML data types into OutSystems data types.
You can change the name of SOAP Web Services, Web Service Methods, Parameters and Structures in your module.
OutSystems does not provide direct support for Web Services Enhancements (WSE). Instead, you can use the EnhancedWebReferences API to implement logic that supports the functionality provided by Web Services Enhancements in your applications.
Use the SOAP Web Service Methods in your Application
OutSystems translates the methods exposed by a SOAP Web Service into platform's actions, with the same semantics as any action created by you in Service Studio.
You can now use the newly created method in your application the same way you use the remaining Server Actions:
- Go to the action flow where you want to use the Web Service Method;
- In the Logic tab, open the Integrations folder and SOAP element;
- Open the SOAP Web Service and drag the Web Service Method into your action flow.