This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Web services approach to be taken for accessing the service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web services approach to be taken for accessing the service" Watch "Web services approach to be taken for accessing the service" New topic
Author

Web services approach to be taken for accessing the service

TB Anjana
Greenhorn

Joined: Oct 15, 2007
Posts: 1
Hi
I would appreciate if I could get some inputs from web service gurus on the best approach that can be taken for developing web service in the scenario as below:

There is a server which hosts some services (typically there is no registry as such). To call any of those service hosted by the server, I need to make a SOAP call and send the request to the server and the server returns me a SOAP response. What I have is the schema definition of the service and a response format. Can anyone suggest me the best way as to how I can go about calling the services from the server. One approach suggested was to develop a wsdl and create client proxies from them and use them to make a call. Is this a valid approach? Inputs are a welcome from all the experienced gurus. The need of the hour is just to make plain SOAP calls (without any attachments).

Thanks in advance for the help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
Welcome to JavaRanch.

Having the WSDL would allow you to use a tool to create the client classes; most SOAP stacks come with one (e.g. Axis has wsdl2java). It's not required -you can certainly create a Java client without a WSDL- but it does simplify things.


Ping & DNS - updated with new look and Ping home screen widget
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
For some reason Ulf didn't mention his own little piece on how to develop an SAAJ client which would not require a WSDL.

As you have the schema you could contemplate using JAXB to help you (un)marshall the XML payload of the SOAP envelope.


Binding between XML Schema and Java Classes


"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web services approach to be taken for accessing the service
 
Similar Threads
REST approach for a compute functionality and large number of input output parameters
What is the fastest way to create a response Id?
Problem related to Time Out in Managed Server
Help needed for testing web service
Consume dot net webservice