cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Java POJOs from cXML DTD

Daniel_Brenner85
Discoverer
305

Hi everyone,

following "cXML Solutions Guide" (https://help.sap.com/docs/business-network-for-supply-chain/cxml-solutions/cxml-solutions-guide?loca...) I want my application to exchange Purchase Orders with Ariba. My simple approach would be as following:

  1. download latest cXML DTD(s) from cxml.org
  2. generate source code for POJOs from DTD(s)
  3. in my application use Jackson (https://github.com/FasterXML/Jackson) to generate XML from Java objects
  4. receive response and - again - use Jackson to fill Java objects with information from XML


My questions:

- I used IntelliJ Ultimate to convert DTD to XSD. And I used jaxb2-maven-plugin from MojoHaus (former CodeHaus) to generated Java source code. Turns out that there are a lot of issues in the XSD. Am I using the right tools?

- are there somewhere cXML XSDs without issues?

- is the source code already available for this? (assuming that SAP VDM cannot be used)

- am I overthinking the whole thing and there is another easier, simpler way?

 

Thanks in advance,

- Daniel

 

Accepted Solutions (0)

Answers (0)