Showing results for 
Search instead for 
Did you mean: 

Copy value from SOAP Request message to Response message

0 Kudos

Dear Experts,
I have an requirement which need to collect from messageID of request and passing same value while sending response back to Sender

Soap(Syn call) <--->SAP PI <--->SAP Proxy

PI receives Input request with SOAP envelope parse the data from XSLT mapping transformation and response also with XSLT mapping response generates back to sender

My requirement is: How to copy the messageID from Request and pass it on response to SOAP sender.

Could you please suggest me some explore possibilities here ?

Input XML request to PI from SOAP Sender

  • <SOAP-ENV:Envelope xmlns:SOAP-ENV="">
  • <SOAP-ENV:Header>
  • <wsa:MessageID >053f0743-79f0-410e-93ce-6535d55e1b13</wsa:MessageID>
  • </SOAP-ENV:Header>
  • <SOAP-ENV:Body>
  • <v1:PrDistri>
  • <v1:Group>
  • <v1:GroupID>35010000</v1:GroupID>
  • <v1:Language>en</v1:Language>
  • </v1:Group>
  • </v1:PrDistri>
  • <SOAP-ENV:Body>
  • </SOAP-ENV:Envelope>

XML Response to SOAP sender from PI

  • <?xml version="1.0" encoding="UTF-8" ?>
  • <soap:Envelope xmlns:soap="">
  • <soap:Header>
  • <wsa:RelatesMsgID >053f0743-79f0-410e-93ce-6535d55e1b13</wsa:RelatesMsgID>
  • </soap:Header>
  • <soap:Body>
  • < v1:PrDistriRes>
  • <v1:Status>Success</v1:Status>
  • < /v1:PrDistriRes >
  • </soap:Body>
  • </soap:Envelope>

Thank you very much.

Accepted Solutions (0)

Answers (4)

Answers (4)

Active Contributor
Active Contributor
0 Kudos
Active Participant
0 Kudos
0 Kudos

Hi Sateesh,

In the SAP ECC, proxy program can be build to accept the request and respond with the same Message ID in proxy response. Ideally in PI 'MsgID' will be an one-to-one mapping.

This will indeed be a end-to-end handshake mechanism / acknowledged proof of document.

Thanks and Regards,

Rajesh PS