Page 1 of 1

Adding <oas:Security> section to <soapeng:Header> section.

Posted: Fri Mar 25, 2022 9:35 am
by caseywhite
I am currently using the SOAPAgentService of LANSA Integrator.

I need to include the <oas:Security> XML in the SOAP request that is be generated in addition to the BasicAuthenicationHeader. I am already using the AGENT_INCLUDE file to get the token to generate into the BasicAuthenticationHeader. Is there a way for me to add more logic to the AGENT_INCLUDE to generate the oas:Security section or is my only recourse to stop using SOAP Agent and instead start using the XML service to manually generate the SOAP XML? The extra stuff I am looking to generate in the request is in bold below. Thanks in advance for any advice.

<soapenv:Header>
<ns1:BasicAuthenticationHeader xmlns:ns1="http://webservices.partsearch.com/Servi ... ityHeader/">
<ns1:AuthToken>New Auth Token Here</ns1:AuthToken>
</ns1:BasicAuthenticationHeader>
<oas:Security>
<oas:Base64Assertion>New SAML Token here</oas:Base64Assertion>
</oas:Security>
</soapenv:Header>