• 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

Which Web Services Client approach to use?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
What's a year in metric? Do you know this metric stuff tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic