cancel
Showing results for 
Search instead for 
Did you mean: 

XML

Former Member
0 Kudos

I am dealing with Biztalk and we get the following XML.

<?xml version="1.0" encoding="iso-8859-1"?>

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

<header>

<delivery>

<message>

<messageID>gi72eo-aaa10-fcokre95-7p</messageID>

<sent>2008-02-15T11:05:08</sent>

</message>

<to>

<address>SAP_FI_MP</address>

</to>

<from>

<address>360T-TEX</address>

</from>

</delivery>

</header>

<body>

<doc:FinancialTransaction.CreateFromData xmlns:doc="urn:sap-com:document:sap:business">

<CompanyCode>1922</CompanyCode>

<ForeignExchange>

<TRANSACTION_TYPE>400</TRANSACTION_TYPE>

<PARTNER>JPMORGAN_L</PARTNER>

<VALUE_DATE>2008-03-19</VALUE_DATE>

<AMOUNT2>65333.00</AMOUNT2>

<CURRENCY1>JPY</CURRENCY1>

<CURRENCY1_ISO>JPY</CURRENCY1_ISO>

<CURRENCY2>EUR</CURRENCY2>

<CURRENCY2_ISO>EUR</CURRENCY2_ISO>

<LEAD_CURRENCY>EUR</LEAD_CURRENCY>

<LEAD_CURRENCY_ISO>EUR</LEAD_CURRENCY_ISO>

<FOLLOW_CURRENCY>JPY</FOLLOW_CURRENCY>

<FOLLOW_CURRENCY_ISO>JPY</FOLLOW_CURRENCY_ISO>

<FORWARD_RATE>158.1349</FORWARD_RATE>

<SPOT_RATE>158.582</SPOT_RATE>

<SWAP_RATE>0</SWAP_RATE>

<CONTRACT_DATE>2008-02-15</CONTRACT_DATE>

<CONTRACT_TIME>11:05:07</CONTRACT_TIME>

<CONTACT_PERSON>RBSDEMO.AutoDealer</CONTACT_PERSON>

<TRADER>WANNINGH</TRADER>

<EXTERNAL_REFERENCE>1927819</EXTERNAL_REFERENCE>

<ACTIVITY_CATEGORY>20</ACTIVITY_CATEGORY>

</ForeignExchange>

<ProductType>DTN</ProductType>

</doc:FinancialTransaction.CreateFromData>

</body>

</biztalk_1>

I am having issues trying to create an XSD for this since it contains an Header and a Body.

The issue is that there seems to be two different name spaces and also this tag here:

<doc:FinancialTransaction.CreateFromData xmlns:doc="urn:sap-com:document:sap:business">

Contains doc: which seems to be giving problems.

Does anyone know how I can either get XI/PI to accept this "doc:" i.e. how to include it in an XSD or Datatype..

or how I can get XI/PI to ignore it? and map the message successfully even with it?

or how

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have already done that. The issue is that it creates two separate XSD's....

Any Ideas?

Former Member
0 Kudos

Hi Alex,

maybe you look for a bistalk-forum. I guess the users there had similar problems.

regards Mario

Former Member
0 Kudos

Hi Alex,

copy and paste the xml into XMLSPY Then: Menu DTD/Schema --> generate DTD/Schema.

Worked.

Regards Mario