• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

java classes for xml schema

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Please suggest the best practices of creating java classes for xml schema (.xsd). Actually the requirement is to instantiate java objects, payment details and eventually send an xml file with details of shooping cart to payment gateway.
In have some understanding about JAXB that I had used earlier for capturing of census data from remote locations.

Please provide your inputs.
rgrds,
Swapan
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JAXB seems to be widely accepted - for example in the Java Web Services Developer Pack.
Have you tried your schema with a recent edition of JAXB?
Bill
 
Swapan Mazumdar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bill,

Thanks for your input. I have just begun with Castor. Though I stumbled initally while creating java classes with the existing .xsd file because of some Special Data Type like GUID with curly braces, yet I still continued with it. I found it limiting at times when schema had special elements of data type.

Do you think I still might consider moving over to jaxb considering the problems I had initially. Pl. consider that my requirement is to create xml file(input) from shopping cart and create output as xml to be passed it over to payment gateway.

Thanks,

Swapan
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic