BizTalk Server - Problem mapping EDIFACT - XML

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server > February 2004 > Problem mapping EDIFACT - XML





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem mapping EDIFACT - XML
JensJensen

2004-02-08, 8:39 am

I have created a mapping between the EFACT_d93a_ORDRSP (Order response) and
an XML schema.
Running the test "Native Instance to XML" results a correct output.
My problem occurs when the file is generated. The receive function picks up
the edifact file and the xml file is generated, but the result file is
somehow corrupted.
The file starts with a complete set of empty tags. Why is that?

Fredrik Hansen
frehanse@hands.no

This is the file:
<?xml version="1.0" ?>
- <Response Type="">
- <Transaction>
- <Head>
<PurchId />
<VendAccount />
<MessageFunctionCoded />
</Head>
- <Line QtyOrdered="" QtyVariances="">
<ConfirmedDelDate />
<CostPriceNet />
<DeliveryUnit />
<DocumentNumber />
<EdiLineNum />
<ItemId />
<ItemIdBuyer />
<ItemIdEAN />
<ItemIdNOBB />
<ItemIdProducerf />
<QtyConfirmed />
<QtyDelivered />
</Line>
</Transaction>
- <Response Type="Confirmation">
- <Transaction>
- <Head>
<PurchId>27530000206</PurchId>
<MessageFunctionCoded>4</MessageFunctionCoded>
</Head>
- <Line>
<ConfirmedDelDate>20040126</ConfirmedDelDate>
<ItemId>7029350650041</ItemId>
</Line>
- <Line>
<ConfirmedDelDate>20040126</ConfirmedDelDate>
<ItemId>5708877176273</ItemId>
</Line>
- <Line>
<ItemId>4000810009329</ItemId>
</Line>
- <Line>
<ConfirmedDelDate>20040126</ConfirmedDelDate>
<ItemId>7052878226139</ItemId>
</Line>
- <Line>
<ConfirmedDelDate>20040126</ConfirmedDelDate>
<ItemId>8018355000028</ItemId>
</Line>
- <Line>
<ItemId>7316690050298</ItemId>
</Line>
- <Line>
<ConfirmedDelDate>20040126</ConfirmedDelDate>
<ItemId>7321710054927</ItemId>
</Line>
- <Line>
<ConfirmedDelDate>20040126</ConfirmedDelDate>
<ItemId>7054042000804</ItemId>
</Line>
</Transaction>
</Response>
</Response>


Jan Eliasen

2004-02-08, 8:39 am

On Fri, 6 Feb 2004 08:03:31 +0100, "JensJensen" <noen@microsoft.no>
wrote:

Have you selected an envelope on your Messaging Port? If so, remove
it.

>I have created a mapping between the EFACT_d93a_ORDRSP (Order response) and
>an XML schema.
>Running the test "Native Instance to XML" results a correct output.
>My problem occurs when the file is generated. The receive function picks up
>the edifact file and the xml file is generated, but the result file is
>somehow corrupted.
>The file starts with a complete set of empty tags. Why is that?
>
>Fredrik Hansen
>frehanse@hands.no
>
>This is the file:
> <?xml version="1.0" ?>
>- <Response Type="">
>- <Transaction>
>- <Head>
> <PurchId />
> <VendAccount />
> <MessageFunctionCoded />
> </Head>
>- <Line QtyOrdered="" QtyVariances="">
> <ConfirmedDelDate />
> <CostPriceNet />
> <DeliveryUnit />
> <DocumentNumber />
> <EdiLineNum />
> <ItemId />
> <ItemIdBuyer />
> <ItemIdEAN />
> <ItemIdNOBB />
> <ItemIdProducerf />
> <QtyConfirmed />
> <QtyDelivered />
> </Line>
> </Transaction>
>- <Response Type="Confirmation">
>- <Transaction>
>- <Head>
> <PurchId>27530000206</PurchId>
> <MessageFunctionCoded>4</MessageFunctionCoded>
> </Head>
>- <Line>
> <ConfirmedDelDate>20040126</ConfirmedDelDate>
> <ItemId>7029350650041</ItemId>
> </Line>
>- <Line>
> <ConfirmedDelDate>20040126</ConfirmedDelDate>
> <ItemId>5708877176273</ItemId>
> </Line>
>- <Line>
> <ItemId>4000810009329</ItemId>
> </Line>
>- <Line>
> <ConfirmedDelDate>20040126</ConfirmedDelDate>
> <ItemId>7052878226139</ItemId>
> </Line>
>- <Line>
> <ConfirmedDelDate>20040126</ConfirmedDelDate>
> <ItemId>8018355000028</ItemId>
> </Line>
>- <Line>
> <ItemId>7316690050298</ItemId>
> </Line>
>- <Line>
> <ConfirmedDelDate>20040126</ConfirmedDelDate>
> <ItemId>7321710054927</ItemId>
> </Line>
>- <Line>
> <ConfirmedDelDate>20040126</ConfirmedDelDate>
> <ItemId>7054042000804</ItemId>
> </Line>
> </Transaction>
> </Response>
> </Response>
>


--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
JensJensen

2004-02-08, 8:39 am

Thank you.
You saved my day.

Fredrik Hansen.

"Jan Eliasen" <spam@eliasen.dk> skrev i melding
news:rgh6205ntprvkjas4kc3b0pqa8c6hrtg9v@
4ax.com...
> On Fri, 6 Feb 2004 08:03:31 +0100, "JensJensen" <noen@microsoft.no>
> wrote:
>
> Have you selected an envelope on your Messaging Port? If so, remove
> it.
>
and[color=blue]
up[color=blue]
>
> --
> Jan Eliasen, representing himself and not the company he works for.
> MCP in Microsoft BizTalk Server



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com