cancel
Showing results for 
Search instead for 
Did you mean: 

XML->Idoc scenario XML encoding

0 Kudos

Hello all,

I'm quite new to the PI-world.

I have to migrate an existing Business connector interface to a PI system.

The file i'm receiving is an xml and looks like below.

I have followed a standard scenario of File (FTP) to Idoc, but PI doesn't seem to be able to read the XML.

I'm supposing something is wrong in the encoding ... ???

Can someone help?

<?xml version="1.0" ?>

- <biztalk_1 xmlns="urn:biztalk-org:biztalk:biztalk_1">

- <header>

- <delivery>

- <to>

<address>urn:sap-com:logical-system:TMP_100</address>

</to>

- <from>

<address>urn:sap-com:logical-system:LABOUNI</address>

</from>

</delivery>

</header>

- <body>

- <doc:MaintOrdConfirmation.ConfCreate xmlns="" xmlns:doc="urn:sap-com:document:sap:business">

- <Timetickets>

- <item>

<CONF_NO />

<ORDERID>000000774384</ORDERID>

<OPERATION>0450</OPERATION>

<SUB_OPER />

<CAPA_CATEGORY />

<SPLIT />

<FIN_CONF />

<COMPLETE />

<CLEAR_RES />

<POSTG_DATE />

<DEV_REASON />

<CONF_TEXT />

Edited by: Kris Lefever on Dec 13, 2011 11:21 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kris,

The provided XML is not valid. Cross check with the structure of the message and you will find the issue.

Is the provided XML is working fine while working with the Business connector?

0 Kudos

Hello all,

Below the complete xml file:

<?xml version = '1.0'?>

<biztalk_1 xmlns="urn:biztalk-org:biztalk:biztalk_1">

<header>

<delivery>

<to>

<address>urn:sap-com:logical-system:XXX_XXX</address>

</to>

<from>

<address>urn:sap-com:logical-system:XXXX</address>

</from>

</delivery>

</header>

<body>

<doc:MaintOrdConfirmation.ConfCreate xmlns="" xmlns:doc="urn:sap-com:document:sap:business">

<Timetickets>

<item>

<CONF_NO/>

<ORDERID>000000000004</ORDERID>

<OPERATION>0450</OPERATION>

<SUB_OPER/>

<CAPA_CATEGORY/>

<SPLIT/>

<FIN_CONF/>

<COMPLETE/>

<CLEAR_RES/>

<POSTG_DATE/>

<DEV_REASON/>

<CONF_TEXT/>

<PLANT/>

<WORK_CNTR/>

<ACT_WORK>354</ACT_WORK>

<UN_WORK/>

<UN_WORK_ISO>PT</UN_WORK_ISO>

<REM_WORK/>

<UN_REM_WRK/>

<UN_REM_WRK_ISO>PT</UN_REM_WRK_ISO>

<ACTUAL_DUR/>

<UN_ACT_DUR/>

<UN_ACT_DUR_ISO/>

<EXEC_START_DATE/>

<EXEC_START_TIME/>

<EXEC_FIN_DATE/>

<EXEC_FIN_TIME/>

<FCST_FIN_DATE/>

<FCST_FIN_TIME/>

<PERS_NO/>

<TIMEID_NO/>

<ACT_TYPE>LABOPT</ACT_TYPE>

<WAGETYPE/>

<CALC_MOTIVE/>

<EX_CREATED_BY/>

<EX_CREATED_DATE/>

<EX_CREATED_TIME/>

<EX_IDENT/>

</item>

</Timetickets>

<PostWrongEntries>2</PostWrongEntries>

<Testrun/>

</doc:MaintOrdConfirmation.ConfCreate>

</body>

</biztalk_1>

former_member192851
Active Participant
0 Kudos

Try

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

Former Member
0 Kudos

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

This is the standard XML format tag. Try with this and remove the biztalk.

Else create the structure in the Message type and check the XML. you would find the difference.

Former Member
0 Kudos

Hi Kris,

The file is correct.

It seems problem in encoding, please check!

Regards

Ramesh

0 Kudos

It seems the problem lies in the line

- <biztalk_1 xmlns="urn:biztalk-org:biztalk:biztalk_1">

...

Former Member
0 Kudos

Yes. Think so!

Former Member
0 Kudos

Hi Kris,

The XML file seems to be invalid.

You can test it yourself, copy the xml content into a notepad and save it in .xml format. If the file opens in internet explorer without and error, then it is valid or else invalid.

Regards

Ramesh

0 Kudos

Hi Ramesh,

I didn't paste the complete file. I'm able to open the file in Internet explorer and it shows perfectly.

Kind Regards

Kris