Skip to content

Conversation

@homebeaver
Copy link
Contributor

@homebeaver homebeaver commented Mar 22, 2021

OpenTRANS is a document oriented standard with

  • ORDER (Auftrag bzw. Bestellung), UNTDID 1001 : 220
  • ORDERCHANGE (Auftragsänderung), UNTDID 1001 : 230
  • ORDERRESPONSE (Auftragsbestätigung), UNTDID 1001 : 231

grafik

So it can be used to implement the e-order api as an altenative.

All xsd files are inside the openTRANS_Paket_V_21.zip :

  • opentrans_2_1
  • bmecat_2005
  • xmlmime
  • xmldsig-core-schema

To compile with jdk1.8 xjc

  • add jaxb-runtime-2.3.3.jar and istack-commons-runtime-3.0.11.jar in CLASSPATH
C:\proj\opentrans>set JAVA_TOOL_OPTIONS=-Duser.language=en -Duser.country=US -Djavax.xml.accessExternalDTD=all

C:\proj\opentrans>xjc -b xjc\bind.xml -d pojo opentrans_2_1.xsd
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en -Duser.country=US -Djavax.xml.accessExternalDTD=all
parsing a schema...
compiling a schema...
...

>xjc -d pojo opentrans_2_1.xsd

have to do some changes in xsd file

thereafter done with :
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_241
JAVA_TOOL_OPTIONS=-Duser.language=en -Duser.country=US

C:\proj\opentrans>xjc -b xjc\bind.xml -d pojo opentrans_2_1.xsd
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en -Duser.country=US
parsing a schema...
compiling a schema...
openTRANS_Paket_V_21.zip\_Examples_\
unfertig,
TODO implements IQuantity anders
und implements aus OrderItem raus
homebeaver added 30 commits June 8, 2021 22:02
	// 318: BG-27 0..n LINE ALLOWANCES
	// 326: BG-28 0..n LINE CHARGES
static Predicate<String> isTRUE
...
ebXml.reflection.SCopyCtor
ctor in Order,OrderResponse wieder private
can take a long time, causing timeouts.

I comment out:
	<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="xmldsig-core-schema.xsd"/>

	and
<!-- 				<xsd:element ref="XML_SIGNATURE"/>  -->

because XML_SIGNATURE is not used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants