XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Bjørn Espen RaadimSubject: EDI TO XML using the Stylus Studio JAVA API - Long segment names bug
Author: Bjørn Espen Raadim
Date: 29 Aug 2007 05:06 PM
Originally Posted: 29 Aug 2007 09:48 AM
Hi

I am decoding an EDI message and I think I have stumbled over a bug when decoding the message using long segment names.

NAD+DP+::0++Customer Name+Street address+City++ZIPCode'

Notice that no fields are specified or separated by ':' for the NAD03 segment. This line decodes to this XML:

---START--->
<NAD>
<NAD01-PartyQualifier>DP</NAD01-PartyQualifier>
<NAD02-PartyIdentificationDetails>
<NAD0201-PartyIdIdentification/>
<NAD0203-CodeListResponsibleAgencyCoded>0</NAD0203-CodeListResponsibleAgencyCoded>
</NAD02-PartyIdentificationDetails>
<NAD04-NameAndAddress>
<NAD0401-PartyName>Customer Name</NAD0401-PartyName>
</NAD04-NameAndAddress>
<NAD05-PartyName>
<NAD0501-StreetAndNumberPOBox>Street Address</NAD0501-StreetAndNumberPOBox>
</NAD05-PartyName>
<NAD06-CityName>City</NAD06-CityName>
<NAD08-PostcodeIdentification>ZIPCode</NAD08-PostcodeIdentification>
</NAD>
<---END---


As you can see, the adapter decodes the segments correctly, and jumps over NAD03, but when filling the NAD04 segment, the adapter is using the longnames from NAD03 and not the longnames from NAD04.

If I replace the EDI line with this one:

NAD+DP+::0+:::::+Customer Name+Street address+City++ZIPCode'

---START--->

<NAD>
<NAD01-PartyQualifier>DP</NAD01-PartyQualifier>
<NAD02-PartyIdentificationDetails>
<NAD0201-PartyIdIdentification/>
<NAD0203-CodeListResponsibleAgencyCoded>0</NAD0203-CodeListResponsibleAgencyCoded>
</NAD02-PartyIdentificationDetails>
<NAD03-NameAndAddress>
<NAD0301-NameAndAddressLine/>
</NAD03-NameAndAddress>
<NAD04-PartyName>
<NAD0401-PartyName>Customer Name</NAD0401-PartyName>
</NAD04-PartyName>
<NAD05-Street>
<NAD0501-StreetAndNumberPOBox>Street Address</NAD0501-StreetAndNumberPOBox>
</NAD05-Street>
<NAD06-CityName>City</NAD06-CityName>
<NAD08-PostcodeIdentification>ZIPCode</NAD08-PostcodeIdentification>
</NAD>

<---END---

It decodes correctly. Notice that the segment between City and zipcode decodes correctly. Probably because there is no subfields for this segment.

Please advice,
Bjoern espen Raadim

Postnext
Tony LavinioSubject: EDI TO XML using the Stylus Studio JAVA API - Long segment names bug
Author: Tony Lavinio
Date: 29 Aug 2007 11:08 AM
Do you have a small in-context sample of this?
That would help the most, having a complete
EDI file that shows the problem.

In order to track it down, it would help to know
the following:
1. the version of Stylus Studio or XML Converters,
2. the version of the EDIFACT file

Postnext
Bjørn Espen RaadimSubject: EDI TO XML using the Stylus Studio JAVA API - Long segment names bug
Author: Bjørn Espen Raadim
Date: 29 Aug 2007 05:07 PM
Originally Posted: 29 Aug 2007 04:46 PM
- The file version is EDI ORDERS D93A.
- I am running stylusstudio 2007 Enterprise suite. Framework version: Build 735f. All the diffrent modules has the same Build.
- Java VM is currently 1.6.0_02-b06
- A complete sample of the EDI file is attached.

There are more than one occurance of the same problem in this file, but the one used as an example, is found on line 16 in the attached file. You should also use the tbl=no ("Force error if not in codelist") parameter when decoding the message using the EDI adapter.

Thanks for quick replies :-)
Bjoern Espen


DocumentStylusStudioTest.txt
EDI Orders D93A sample

Posttop
Tony LavinioSubject: EDI TO XML using the Stylus Studio JAVA API - Long segment names bug
Author: Tony Lavinio
Date: 31 Aug 2007 10:49 AM
This bug is fixed in our current release.

You may download a copy of Stylus Studio 2007 Release 2 and the
converter there will handle this case properly.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.