Skip to Content
0
Former Member
Nov 20, 2006 at 07:33 AM

xml to idoc ... message mapping ..fatal error

58 Views

Hi XI friends..

In Xml to Idoc scenario..

i used xsd as external definition..

and i did mapiing between external definition and idoc

when static test it excuted successfully .

the source xml of external definition ..after message mapping in static test


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

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
   <ns0:Message1>
      <ns1:Units xmlns:ns1="http://aaaaa.org/Units.xsd">
         <ns1:Unit Id="aa" Date="2006-10-10T10:10:10" Value="11"/>
         <ns1:Unit Id="bb" Date="2006-10-10T10:10:10" Value="22"/>
      </ns1:Units>
   </ns0:Message1>
</ns0:Messages>

but i am getting xml like this from external system

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

      <Units xmlns:ns1="http://aaaaa.org/Units.xsd">
         <Unit Id="aa" Date="2006-10-10T10:10:10" Value="11"/>
         <Unit Id="bb" Date="2006-10-10T10:10:10" Value="22"/>
      </Units>
   

when i am trying to convert the above xml into idoc in static test

i am getting

Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Document is not well-formed.

plase guide me..

regards

ram