• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which Web Services Client approach to use?  RSS feed

 
Darrell Bulloch
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is my understanding that there are several options for creating a web services client in Java. They include:
1. JAX-RPC
2. SAAJ
3. using HttpURLConnection along with the PrintWriter class to
open an HTTP connection and simply sending a message via an output
stream.
How would one know which method to use?
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Darrell Bulloch:
How would one know which method to use?

By trying to understand each option, one will choose the best for his/her system.
SAAJ => Soap with Attachment API for java = > http://java.sun.com/xml/saaj/index.jsp => As you can guess, you will use it to send attachments along with the soap message.
JAX-RPC => RPC is Remote procedure call, JAX-Rpc is java api for xml based RPC. you will use to build webservices. => more info here http://java.sun.com/xml/jaxrpc/primerarticle.html
HttpURLConnection - Printwriter
There is so many free automated tools available already to writer simple to complex clients doing the job you want, Ex: Apache Axis, if they don't meet your needs, then you can write on your own.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!