OutSystems Platform 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.
This API provides actions for, for example:
When invoking Web Services that require authentication, this extension allows you to specify the credentials: use the SetWebReferenceCredencials action before invoking the SOAP method.
To extend the functionality of SOAP Web Services implemented with OutSystems Platform, it is possible to add more information to SOAP headers. This makes it possible to implement support for Web Services Enhancements (WSE) and even exchange custom information.
To add more information to the SOAP headers, use the SetWebReferenceSoapHeaders action before using the SOAP method. In the same way, to read the SOAP header, use the GetWebServiceSoapHeaders at the start of the SOAP method and implement custom logic to use the information provided by that action.
In scenarios where the same SOAP Web Service can be consumed from multiple endpoints, you can programmatically change the URL to point to the right endpoint at runtime.
An example is, when accessing multiple external systems that share the same SOAP interface, to be able to shift service providers at runtime.
To do so, before executing a SOAP Web Service method, use the SetWebReferenceURL action and specify the SOAP Web Service name and the new URL.
In scenarios where a SOAP Web Service is consumed through a proxy, you can use the SetWebReferenceProxy action before executing the SOAP Web Service action.
This action allows you to specify the proxy's URL and credentials to perform the authentication in the proxy.
Consume a SOAP Web Service