Expose a SOAP webservice: namespace issues

I'm having some trouble formatting the response of a SOAP webservice we need to expose. 

We have a example of the expected result. The response example starts like this:

<?xml version="1.0" encoding="utf-8"?>






However with OutSystems the output starts like this:

<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema">


  • How can I add namespaces to the envelope (head, spr, tns) ?
  • How can I rename the namespace soap to soapenv ?
  • How can I remove the unwanted namespaces (xsi, xsd) ?
  • What does the "Web Services Namespace" of a espace actually do? I've set it to "tns", but it doesn't appear to have any effect. The documentation says: "Namespace of the WSDL generated by this module." That's not very helpfull ....


Please check out this forge component: https://www.outsystems.com/forge/component-overview/5322/soap-extensibility-samples   

I think it has the methods that you need.  One question, is there a particular reason you are going the SOAP route? Most of the time, people are currently using REST instead of SOAP for a lot of different reasons.

Hi Stacey,

Thanks for your reply. This forge component is about consuming webservices, not producing, and alos we are currently still on OS 10, not on OS 11, so we can't use this component.

The reason we are using SOAP is that we have to provide a webservice that is mandatory SOAP. I'd rather use REST instead, but that's just not allowed....