cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI 7.31 Setting SOAP Header Dynamically & Payload for PI Call

former_member191528
Participant
0 Kudos

Hello,

I have a following requirement. I have to set the SOAP Header with a dynamic token and also send the SOAP body for a service call.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="" xmlns:urn1="" xmlns:urn2="">

   <soapenv:Header>

      <urn:OTAuthentication>

         <!--Optional:-->

         <urn:AuthenticationToken>11111233</urn:AuthenticationToken>

      </urn:OTAuthentication>

   </soapenv:Header>

   <soapenv:Body>

      <urn1:CreateURL>

         <urn1:parentID>1111111</urn1:parentID>

         <!--Optional:-->

         <urn1:name>TrailRun_SOAPUI</urn1:name>

         <!--Optional:-->

         <urn1:comment>fasdasda</urn1:comment>

         <!--Optional:-->

         <urn1:location>\\SOAPUI</urn1:location>

         <!--Optional:-->        

      </urn1:CreateURL>

   </soapenv:Body>

</soapenv:Envelope>

When I import the WSDL I can only see the SOAP Header and SOAP Body as two separate service calls.

I need to pass both as one. Is there a way to do it ? Can I set the SOAP Header with Authentication token separately ?

Thanks,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

former_member190293
Active Contributor
0 Kudos

Hi Kiran!

You can switch off using Soap Envelop in Soap adapter settings and build your own envelope with XSL transformation, for example.

Regards, Evgeniy.

former_member191528
Participant
0 Kudos

I did it using XSL transform as recommended and reference it in Operation mapping

Answers (1)

Answers (1)

apu_das2
Active Contributor
0 Kudos

Hi Kiran,

Talk to the wsdl provider ... Sometimes they provide it as separate service but there should have an parent wsdl which will call these 2 services and in PI you should import all and mapping should be done with the parent one.

Thanks,

Apu