49
Views
2
Comments
How to add a SOAP Header

Good day. I am using the Soap exten to build a header using the AddSOAPHeader_ToRequest action from SOAPExtensibility.

 I need assistance as to break this down. What do I put as name, namespace and value.

Here is my header

  


 

2026-02-24 09-32-11
RUDO MURIEL MUNYAVI

It's unfortunate I can't paste the html. It's being formatted and you can't see it. You can guide me what I must put on each section.

2024-10-12 12-11-20
Kerollos Adel
Champion

To add a SOAP header in OutSystems, there are a couple of approaches you can take depending on the complexity of your SOAP service. Here's how you can handle it:

  1. Using "AddSOAPHeader_ToRequest" Action: This function allows you to add headers to a SOAP request. You'll need to input the following parameters:

    • Name: The name of the header element, such as Security.
    • Namespace: Define the XML namespace, for example, https://schemas.xmlsoap.org/soap/envelope/.
    • Value: Provide the necessary security or authentication tokens (like SAML or Username/Password). For instance:

       

  2. Customizing the WSDL: If you're unable to manipulate the headers directly within the platform, another option is to modify the WSDL manually. You can add the required SOAP headers directly in the WSDL file, ensuring they are present when the service is consumed 


      3. Using the EnhancedWebReferences API: This OutSystems extension allows for advanced SOAP header manipulations. You can use system actions like SetWebReferenceSoapHeaders to programmatically set the headers before making requests( 

For detailed instructions and additional context, you can explore this documentation on OutSystems.
https://success.outsystems.com/documentation/11/integration_with_external_systems/soap/consuming_soap_web_services/use_advanced_extensibility/add_soap_header/


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.