Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

use JAX-RPC or SAAJ service?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as I know we can set up web service with JAX-PRC or SAAJ.
It seems that SAAJ is simpler than JAX-RPC for me, because it don't need to use WSDL.
Is there any difference between them? How to choose between them?
Please help!
Thanks in advance!
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would consider JAX-RPC easier than SAAJ because JAX-RPC has a higher abstraction level. SAAJ is about constructing SOAP message by hand while JAX-RPC is closer to "pure" objects. I'm not quite sure why you're worried about having to use WSDL? The WSDL document is exactly what makes web services development a breeze -- because you can generate the client and service code automatically. Besides, if you use SAAJ, you'll need to examine the WSDL to figure out what kind of message the service expects to receive...
I'd suggest using The Java Web Services Tutorial as a first step (you can probably skip most chapters as they're not directly related to web services).
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, you do not have to write WSDL by hand. Using tools like Java2WSDL, you simply code a JAX-RPC Service Endpoint Interface (just a Java interface, that's all) and it will generate the WSDL for you...
Because of this I'd consider JAX-RPC to be lightyears simpler than SAAJ...
Kyle
 
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic