• 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

Spring-ws marshalling/unmarshalling

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi experts,

I am quite new to spring-WS so please bare with me.
Currently my employer use Spring-WS heavily and use JDom to unmarshall the request soap message. The problem here is every single endpoint has few lines to read the request fields. For example, this is the beginning of the method:

So it is 7 lines for 2 fields, what about 10 fields!! I decided to look at the options i can go for, i found that spring supports JIBX, Castor, and XStream but as i am newbie i am bit lost and don't know which one to select!
Based on your experience guys, which option is the more flexible and reduce as much as possible the repeated code?

Thanks,
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a lot of XML binding technologies out there see this list:

XML Binding Technologies

Each have their nuances pros/cons I have personally used jibx, jaxb and xmlbeans and they all were able to get the job done. Which ever one you use I would definitely take a look at Spring OXM for marshalling and unmarshalling.

Spring OXM Example
 
Mina Daoud
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bill Gorder wrote:There are a lot of XML binding technologies out there see this list:

XML Binding Technologies

Each have their nuances pros/cons I have personally used jibx, jaxb and xmlbeans and they all were able to get the job done. Which ever one you use I would definitely take a look at Spring OXM for marshalling and unmarshalling.

Spring OXM Example



Thanks for the useful links! I had a look and i decided to use xmlBeans as it has full schema support!
 
I once met a man from Nantucket. He had a tiny ad
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic