Skip to Content
0
Former Member
Nov 10, 2016 at 03:53 PM

XML prefix in the SOAP Header and Body message

1099 Views

Hi Team,

We are trying to integrate an application using SAP PO and the application expects SOAP Header with the sender system ID where the header can be created using XSLT mapping with the SOAP body included from the Message Mapping as discussed in the thread.

https://archive.sap.com/discussions/thread/3883963

The SOAP body included from the Message Mapping has ns0 as the xml prefix where my structure that needs to be passed is expected as below:

http://schemas.xmlsoap.org/soap/envelope/" xmlns:opt=" http://www.clicksoftware.com/OptionalParameters" xmlns:wfm=" http://www.xxxxxxx.com/wfm/">

<soapenv:Header>

<opt:OptionalParameters>

<opt:CallerIdentity>xxxxxx</opt:CallerIdentity> <opt:ErrorOnNonExistingDictionaries>true</opt:ErrorOnNonExistingDictionaries>

</opt:OptionalParameters>

</soapenv:Header>

<soapenv:Body>

<wfm:GetAvailableSlots>

<wfm:Period>

<wfm:Start>2016-09-12T08:00:00</wfm:Start>

<wfm:Finish>2016-09-19T18:00:00</wfm:Finish>

</wfm:Period>

<wfm:Task>

<wfm:TaskType>DNPG</wfm:TaskType>

<wfm:District>xxxxxx</wfm:District>

<wfm:Duration>1800</wfm:Duration>

<wfm:Priority>4</wfm:Priority>

<wfm:Latitude>44336957</wfm:Latitude>

<wfm:Longitude>-69811731</wfm:Longitude>

<wfm:NotificationType>MM</wfm:NotificationType>

<wfm:RespServiceCenter>RS</wfm:RespServiceCenter>

</wfm:Task>

<wfm:Profile>Full Day</wfm:Profile>

</wfm:GetAvailableSlots>

</soapenv:Body>

</soapenv:Envelope>

Could you please let me know how to create XML prefixes or replace XML prefixes with the required one ? The XML included in the body is generated from XSD imported from the external application.

Request your help on the same.

Thanks and Regards,

Raj