• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

difference between JAXRPC and SOAP  RSS feed

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i can call a webservice by creating a SOAPEnvelope and sending it , webservice will take the SOAPEnvelope and gives back data in another SOAPEnvelope. (SOAP Method)

OR

i can call a webservice by creating a stubs out of WSDL and in webservice there will be some java class which will return me some data through VO. (JAX-RPC Method)

What i wanted to know is what is the difference between both.

i understand all message exchange happens in web service through SOAP,so what does jaxRPC does?
iam assuming JAX RPC internally uses SOAP to transfer XML messages, but only advantage of
JAX-RPC is that it will do the dirty work of populating our value objects from SOAP messages internally?

 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you call the "SOAP method" probably means using the SAAJ API, which is a lower level API than JAX-RPC. In the end, both accomplish the same, but SAAJ -working on a lower level- is the harder to program against (more details to keep track of, easier to get it wrong).

Note that JAX-RPC is a deprecated API; if you're starting a new project you should be using the JAX-WS API instead.
 
anand kumarblr
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. and also for the suggestion for using "JAX-WS API ".

So JAX-RPC or JAX-WS internally uses SAAJ API for sending SOAP message?
if not SAAJ API it might use similar API to create SOAP message and send it ?

All i wanted to know is whatever the API it needs to use SOAP message for communicating?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

So JAX-RPC or JAX-WS internally uses SAAJ API for sending SOAP message? if not SAAJ API it might use similar API to create SOAP message and send it ?


That depends on the SOAP stack. Axis, for example, has its own low-level SOAP API called AXIOM.

All i wanted to know is whatever the API it needs to use SOAP message for communicating?


Ultimately, all these APIs use SOAP; that's their purpose in life, after all.
 
anand kumarblr
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. i get to know some Basics
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!