File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 42913
    
  68
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.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web services approach to be taken for accessing the service