Skip to Content
0
Jul 29, 2016 at 03:45 PM

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

327 Views

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