• Post Reply Bookmark Topic Watch Topic
  • New Topic

Non web client for web service

 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cany anybody point me to an article, or source code that shows an example of a (non web) client created to invoke a web service.

I converted a business method on Java bean into a web service using RAD 6.0. It generated corresponding wsdl etc. RAD can also create a client project for you that uses a JSP (Test.jsp) to test the service code.

However, I would like to know how I can write client code, instead of relying on the web based client code generated by RAD.

I would like to write client code that will be invoked from a non web app. As such, I do not want the client code to be JSP or Servlet based.

Any help with example, or pointing out any article will be appreciated.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A simple SAAJ client can be found here. (Disclaimer: That's code of mine, so don't assume it's good style or practice. But it works.) With a little experimentation (and maybe a SOAP monitor like SOAPUI) you can probably get it to emit it whatever SOAP the service can digest.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sam Gehouse:
I would like to write client code that will be invoked from a non web app. As such, I do not want the client code to be JSP or Servlet based.


Page 289: Creating Web service clients: Stand-alone Java client from WebSphere Version 6 Web Services Handbook Development and Deployment
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!