I'm finally able to consume web services through our proxy server and now I have a XML file. Where do I start with parsing? I'm confused by the plethora of parsers; SAX, DOM, XSLT, Xerces, etc., and don't know where to start.
If it makes a difference, I'm getting the XML from the National Weather Service to build a web page with the weather forecast. I don't want all our users constantly hitting the NWS website so I need to store this information. I'm thinking I need to populate a bean and store it in the context.
Any tips on how to get started? Am I on the right track?
"There is no reason for any individual to have a computer in his home" ~ Ken Olson, Co-founder of DEC, 1977
But that site is just a quick overview of what you would do if you knew how to use JAXB. A proper treatment of JAXB would require... well, however many pages the JAXB tutorial requires. It's a lot. I thought I had a copy on my machine but I don't, but anyway I recommend having a look at it. Your google keywords are jaxb tutorial (of course).
I should have been clearer. I'm using a REST call; no WSDL involved. This is what I have so far:
But now I'm not sure what to do with that Object created on line 34. I have a folder full of classes created by JAXB from the XSD file, including an ObjectFactory class, but don't know what the next step should be.