• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get list of methods in a web service? or: how to read from a soap response in java  RSS feed

 
Adrian Burlington
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm using a sample web service of yahoo weather.

The parsing goes like this:


Question: how does the author knows that the return result of city is from: "/rss/channel/y:location/@city", or in other words, where is the 'manual' of the webservice that explains the names/tags/data...

Thanks!


complete code of this sample is here
 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look on this example response from Yahoo Weather service.

http://developer.yahoo.com/weather/#response

city is an attribute for 'location' element.
 
Adrian Burlington
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I saw it (thanks); I think my question is more 'general': if you have a webserive link - how can you tell what method it offers? or what arguments should you send.

consider this: http://www.xmlme.com/WSShakespeare.asmx

Thanks!

 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The link you provided points to the associated WSDL document. It shows the GetSpeech operation with great documentation.

Regards,
Dan
 
Kelly Powell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Adrian Burlington: The description of a web service can be found in its WSDL (Web Service Description Language). It states the methods, required parameters of the methods and the return type of the methods that a web service is offering. To view or use it, you must know the link of the Web Service' WSDL. An example pattern of a URL to a web service' WSDL is http://ipAddress:port/projectName/services/className?wsdl.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!