Adding SOAP Header Using SOAPExtensibilitySamples

Good morning,

Since, EnhancedWebReferences doesn't work anymore on OutSystems 11, I hae troubles adding a header to the SOAP API I consume. I want to add the following:

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.helloworld.org/HelloWorld/HelloWorld/2019">
   <soapenv:Header>
      <ns:MessageHeader>
         <ns:Username>Test</ns:Username>
         <ns:Password>Testestest</ns:Password>
      </ns:MessageHeader>
   </soapenv:Header>
   <soapenv:Body>


Can someone tell me what I do wrong?

Pedro Costa wrote:

Hi Martin,


Did you look at these posts?

https://www.outsystems.com/forums/discussion/21680/how-to-add-soap-header/

https://www.outsystems.com/forums/discussion/38042/assigning-header-values-when-calling-soap-methods/


Regards


Hello Pedro,


Thanks for your reply, but as I said in my question "EnhancedWebReferences doesn't work anymore on OutSystems 11". I've seen the post you mention, but those solutions are about this EnhancedWebReferences.


Kind Regards

So is there any solution to this problem?

If the solution is to implement an extension, that's cool to. But the documentation  doesn't really help in the how to implement what the OP needs.

I have a similar problem and can't find a solution too.

Prasad Rao wrote:

Hi,

If its wise:security then use https://www.outsystems.com/forge/component-overview/6374/wcf-ws-security-and-wse-nonce-authentication or try https://www.outsystems.com/forge/component-overview/7175/soap-extensibility. Let me know if it worked for you.

Regards.


Went the soap-extensibility route and it works. Would be helpfull if it had some examples.
Thanks for the tip