cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi All,

This is inbound proxy scenario i.e Third party system --> PI --> SAP

I am using sap provided standard external definitions under both SI (inbound and outbound).

Below is the message header from third party

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

<n0:EPCISDocument schemaVersion="1.0" creationDate="2012-08-23T12:11:43+02:00">

   <EPCISBody>

      <EventList>

         <AggregationEvent>

Below is the message header that SAP can accept

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

<ns2:EPCISDocument schemaVersion="1.0" creationDate="2012-08-23T12:11:43+02:00" xmlns:ns2="http://sap.com/xi/PTA">

   <EPCISBody>

      <EventList>

         <AggregationEvent>

the only difference is the namespace (Marked it in colour).

how can i add namespace in payload to make this interface successful?

Note: I know it can be done by using XSLT Mapping  but I have to use standard sap SWC ( SCEMSRV ), can not use any mapping.

         I can not copy the objects in to separate software component.

Regards,

pradeep A.

0 Likes
View Entire Topic
Former Member
0 Likes

Hi All,

i know using XML Anonymizer Bean in Communication Channel is to remove/change name space prefix in XML payload.

can i use it to add a new namepace?

http://www.saptechnical.com/Tutorials/XI/XMLPayload/Index.htm

Regards,

pradeep A.

nabendu_sen
Active Contributor
0 Likes

Hi Pradeep,

Please check the below SAP Document.

http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/content.htm

"anonymizer.acceptNamespaces" can be used only to keep namespaces which are coming from Sender.

In your case, its not coming from Sender but you want to add before submitting message to Receiver.