on 08-31-2010 12:28 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to Both of You ...
Problem has been Resolved with Your Help.
regards
Prabhat Sharma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prabhat,
the easiest way is to make the field XML Namespace of the source Message Type blank.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.