tags:

views:

522

answers:

0

I have written a small app that retrieves data from the National Digital Forecast Database NDFD, and am currently receiving the XML response correctly. I have noticed that although I can use the WSDL2Java tool in order to create the interface in order to request the weather data, when I actually use the interface to get the weather data it is returned as an XML string. Is there a cleaner way to programmatically get the weather data from the resulting XML other than parsing it? For example, are there Java interfaces available such that I could call something like weatherData.getTemp() instead of traversing through the XML itself?

Note that this is my first time using SOAP, so if there is something that I am obviously overlooking, please let me know.

Update:
Here is the wsdl that I am using.