cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Username token with JMS adapter

NishantChavan
Participant
0 Kudos

Hi Expperts,

Here is my scenario, I am getting flat file from ECC, I am converting that into XML and sending it to IBM MQ. IBM MQ is sending that to another system which has local queues to receive messages.

The requirement, the receiver systems whats the SOAP Username token with each XML message. how do i achieve this?. The option that i am thinking is create a target interface with SOAP username token and assign values to it.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186851
Active Contributor
0 Kudos

Hello Nishant,


To add soap headers,Refer the below discussion

former_member182412
Active Contributor
0 Kudos

Hi Nishant,

Yes you are right create target message with SOAP envelope with user name token assign it in the mapping level.

Regards,

Praveen.

NishantChavan
Participant
0 Kudos

Thanks Praveen,

is there a standard ESR component for username token?

Thanks,

Nishant

former_member182412
Active Contributor
0 Kudos

Hi Nishant,

You can use below XSLT mapping after the mapping.


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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:template match="/">

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

         <soap:Header>

            <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

               <wsse:UsernameToken>

                  <wsse:Username>User</wsse:Username>

                  <wsse:Password>Password</wsse:Password>

               </wsse:UsernameToken>

            </wsse:Security>

         </soap:Header>

         <soap:Body>

            <xsl:copy-of select="*"/>

         </soap:Body>

      </soap:Envelope>

   </xsl:template>

</xsl:stylesheet>

Regards,

Praveen.