• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web services approach to be taken for accessing the service

 
TB Anjana
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic