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

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
caseywhite
Posts: 192
Joined: Thu May 26, 2016 1:17 am

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

Post 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>
Post Reply