cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify Source XML Structure as it is getting Fail in message Mapping

Former Member
0 Kudos

From Client , I am Gettin Such XML Structure in XML File ...But it is getting failed in Message Mapping ,.,,

<?xml version="1.0"?>

<invoice>

<Header>

<DOCID>0001</DOCID>

<DOCNO>0001</DOCNO>

<INVAMT>1000</INVAMT>

</Header>

</invoice>

I tried to find out few things ...

On test of mesage mapping

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

<ns0:invoice xmlns:ns0="urn:sample.com:file:file">

<Header>

<DOCID>0001</DOCID>

<DOCNO>0001</DOCNO>

<INVAMT>1000</INVAMT>

</Header>

</ns0:invoice>

This mapping is getting successful.

So Problem I found Is difference in Sender File Structure from autogenrated Source Structure in Test tab :

</invoice>

:

:

and

:

:

<ns0:invoice xmlns:ns0="urn:sample.com.com:Invoice:DB">

Please Suggest : What to do ?

How to add this ns0: before INVOICE and :ns0="urn:sample.com.com:Invoice:DB" after INVOICE in Source Structure.

I am using PI 7.0

regards

Prabhat

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Instead of changing the source structure, you can also change your message type.

Open the message type in edit mode and remove the entry in the field XML Namespace.

Reassign the message type to your mapping.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to Both of You ...

Problem has been Resolved with Your Help.

regards

Prabhat Sharma.

udo_martens
Active Contributor
0 Kudos

Hi Prabhat,

the easiest way is to make the field XML Namespace of the source Message Type blank.

Regards,

Udo