• 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

Web services approach to be taken for accessing the service

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic