• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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 yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic