cancel
Showing results for 
Search instead for 
Did you mean: 

How to create wrapper API in sap PI 7.5

dileepkrc307
Participant
0 Kudos
331

Dear Experts,

Third party is sending request in their own standard XML format by restfulAPI but here is conflict when it hits to the PI system format is not matching.Could you please suggest me how to create wrapper API which can accept third party format.

Basically as my knowledge in Sap PI we will create API and give to third party along with payload based on our XML payload they will configure in their system but here they want to send their own XML format is different with our PI XML format has prefix not matching.

Please find below third party XML format and PI generate format.

Issue is at prefix if they pass prefix at three location as bottom format in the pic then pi accept if prefix missing in XML format as top format in the pic then message not success in sap PI.Even I used XML anonymizer bean.

Thanks and Regards,

Dileep

lm_allen
Explorer
0 Kudos

If you create your service interface with interface pattern set as below

The xml will be accepted even if invalid or not matching your message definition. You can then use java mapping/xslt to get it in the format you require

Accepted Solutions (0)

Answers (1)

Answers (1)

lm_allen
Explorer
0 Kudos

If you create your service interface with interface pattern set as below

The xml will be accepted even if invalid or not matching your message definition. You can then use java mapping/xslt to get it in the format you require

dileepkrc307
Participant
0 Kudos

Thanking for your support,maintained as above mentioned and issue resolved.

Thanks and Regards,

DILEELP