Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

How to get MetaData from web service

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new in web service

Can you please tell me how to get the metadata from web service e.g. operation Names, parameters, schema information

Thanks
 
Saloon Keeper
Posts: 7624
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Talk to the provider about how to get the WSDL (or WADL, if it's a REST service). It has all the information you need to build client code.
 
Mittal Vishal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim,

My application is a core Java application
It takes URL of web service as input
I have used WSDL jar to parse it .

I am able to get the operation names from the service
But I need to know the schema information of the service

so that I can parse the response based on the schema
Please suggest

Thanks
 
Tim Moores
Saloon Keeper
Posts: 7624
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The WSDL contains information about all data types needed to use the WS, so what do you mean by "schema information"?
 
Mittal Vishal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim,

I know that WSDL provides all the information but...

For e.g. In the following web services

http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

I have to map GetWeatherInformationResponse to ArrayOfWeatherDescription which is again mapped to WeatherDescription which actually have the output elements

I can write my own logic which can map them, all I want to know is, is there any in build logic which can provide me a mapping which maps GetWeatherInformationResponse to WeatherDescription or to its child

Thanks


 
Tim Moores
Saloon Keeper
Posts: 7624
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All major SOAP stacks have tools (maybe called something like wsdl2java) that can generate Java code -including all the data classes- from a WSDL.
 
reply
    Bookmark Topic Watch Topic
  • New Topic