- This topic has 8 replies, 3 voices, and was last updated 18 years, 1 month ago by Brian Fernandes.
-
AuthorPosts
-
David Orriss JrParticipantI figured I’d ask here since this is the Web Services forum.. 🙂
Anyone know of a good Web Service for obtaining weather forcasts that’s free?
I’ve found a couple of varying quality and reliability… so I’m probably just not looking in the right place.
Thanks in Advance.
Riyad KallaMemberMoving to OT > Soft Dev
Dave, I kicked out an email to a few developers that I know who might have some suggestions. I’ll let you know what I hear back.
Riyad KallaMemberThis one is WSDL-able:
http://www.weather.gov/xml
David Orriss JrParticipantNice! Thank you so much..!!
Brian FernandesModeratorDave,
Unfortunately the WSDL Riyad posted above seems to be using RPC / Encoded and a client would most probably not be generated when using XFire or MyEclipse tools. It might be possible to modify the WSDL so that it will work with document / literal wrapped style , but not all webservices can be converted like this nor can the correct working of the client be guaranteed.
David Orriss JrParticipantWell, crud… 🙁
Back to the drawing board… Or perhaps I can try it with the WebService tools in Java 6.
Brian FernandesModeratorDave,
Unfortunately, the situation with WS tools in Java 6 will be similar. Java 6 bundles JAX-WS which also does not support RPC / Encoded. Like most next generation frameworks, JAX-WS has decided not to add RPC / Encoded support since it isn’t standards compliant (this is when I checked last, 1 month ago). Ironically, JAX-WS is JAX-RPC version 2.0. Similarly, Axis 1.3/4 does support RPC / Encoded, but it has transitioned into maintenance phase now; the new and rewritten Axis 2 framework does not support RPC / Encoded.
I usually find web services from here: http://www.xmethods.net/ve2/Directory.po – all the weather services listed seemed to be Doc / Literal, but I’m not sure if they fit your needs or if they are free.
Hope this helps.
David Orriss JrParticipantCan someone sum up what makes RPC/Encoded unique and why it doesn’t seem to be very widely supported in the Java space? I know document/literal is very common, but I’m curious why so many serices are using RPC/Encoded but it seems that no (or very few) Java tools are supporting it.
Brian FernandesModeratorDave,
I believe Axis and some other older frameworks were set to use RPC / Encoded by default, that’s why we have a ton of older RPC / Encoded services around – but most of the newer services are Doc / Literal.
Here’s a good article on the subject: http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/ -
AuthorPosts