cancel
Showing results for 
Search instead for 
Did you mean: 

xml file without namespace with file adapter

former_member192375
Participant
0 Kudos

Hi,

Please can you assist. We will be receiving a XML file from an application without the namespace in the file.

As I tested thusfar PI requires a namespace as part of the xml file.

How would it be possible to you handle this with the file adapter.

Ex.

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

<applicatrion>

<orders>

<order>

<action>I</action>

<orderId>4261A92485</orderId>

</order>

</orders>

</application>

Regards

Willie Hugo

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

Answers (2)

Answers (2)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

if you receive xml message without name sapce its not going to be any problem,normally we receive xml message withour name space only.When the message trasfer through PI,PI wil add name space wht you have created .But best pratice is to avoid name space while sending message to receiver,most of clients they wont accept PI name space present in Target message.

But in your case check the XML message its valid or not,if it valid ,File adapter will read xml message succesfully. so just forget abt name space in XML file.

Regards,

Raj

ravi_raman2
Active Contributor
0 Kudos

You can remove the namespace from your MT

OR

You can add it to the message from Content Conversion.

Either option will work.

Regards

Ravi Raman

Former Member
0 Kudos

Hi Hugo,

Please see if this link could clear some doubts http://www.w3schools.com/XML/xml_namespaces.asp

We generally get an idoc xml in the below format without any issues:

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

- <ORDERS05>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<MANDT>510</MANDT>

<DOCNUM>0000000000127051</DOCNUM>

<DOCREL>700</DOCREL>

<DIRECT>1</DIRECT>

<IDOCTYP>ORDERS05</IDOCTYP>

</EDI_DC40>

Thanks,

Sudhansu