• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get MetaData from web service  RSS feed

 
Mittal Vishal
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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
 
Tim Moores
Saloon Keeper
Posts: 3832
80
  • Mark post as helpful
  • send pies
  • 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
  • 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: 3832
80
  • Mark post as helpful
  • send pies
  • 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
  • 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: 3832
80
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!