cancel
Showing results for 
Search instead for 
Did you mean: 

Non sap system triggered below Request XML format but facing issue at prefix in body

dileepkrc307
Participant
0 Kudos

Dear Experts,

I have been trying to solve below issue but not able to complete the requirement,could you please help on this issue.

Working on PI 7.5

Below XML format triggering from Non sap and I have done scenario Rest to RFC as synchronous scenario(Nonsap to PI to Sap).End point URL (REST API-POST) given to third party.

Below Request From third party-

If I test the integration by postman tool using below XML format message then After Message(AM) payload not generated (Could see BI & MS payloads) in message monitor if I check message log getting error "InterfaceDetermination did not yield any actual interface".

<?xml version="1.0" encoding="UTF-8"?> <permittLetterGeneration xmlns:ns2=

"http://kyc.com"

> <REF> <Aut>NI98</Aut> <Num>KLM</Num> </REF> </permittLetterGeneration>

If I try below format message delivered successfully but I need to do process as above request format.

<ns2:permittLetterGeneration xmlns:ns2=

"http://kyc.com"

> <REF> <Aut>NI98</Aut> <Num>KLM</Num> </REF> </ns2:permittLetterGeneration>

Facing issue at prefix if I keep prefix infront of the permittLetterGeneration then message processed otherwise getting 500 internal server error in postman tool and "InterfaceDetermination did not yield any actual interface" error in PI.

Please suggest me.

Thanking you sir

Accepted Solutions (0)

Answers (3)

Answers (3)

dileepkrc307
Participant
0 Kudos

Thank you all for support me,

Issue is resolved as I followed you all.

I selected stateless XI3.0 compatible in Interface pattern at Service interface and XML anonymizer in channel.Then I used Java mapping in operation mapping for take third party data and put in to our pi payload then used message mapping and message processed in to target system.

Thanks and Regards,

Dileep

dileepkrc307
Participant
0 Kudos

Thanking you sir for your response.

I have used xml ananymizer Bean in communication channel and please find below test case.

If i trigger data from postman tool as third party standard format as below message not process successfully.Here prefix not mentioned at red marking point and prefix mentioned in at blue marking point only.I need to take this request messgage from third party and need to process in PI.

Rest Adapter-Sender

If i maintained same prefix at three locations at marking red point then only message processing successfully.

Please suggest me.

Thanks

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

You can use the xmlanonymizer for your requirement. Please refer to this blog for more information.

Regards,

Mark