Re: get XML string returned by web service in java
If you type "java consume web service" about 25,000,000 results pop up showing you, with code even, how to consume a web service. There are two main ways that people do this: using JaxWS (a third party, open source, solution), or by using some of the following Java classes, already there in the SDK:
Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
I had a nightmare last night. I was dreaming that I’m 64-bit and my blanket is 32-bit and I couldn’t cover myself with it, so I’ve spent the whole night freezing. And in the morning I find that my blanket just had fallen off the bed. =S(from: bash.org.ru)
//always looking for job opportunities in AU/NZ/US/CA/Europe :P
willCodeForFood(Arrays.asList("Java","PHP","C++","bash","Assembler","XML","XHTML","CSS","JS","PL/SQL"); USE [code] TAGS!Read this FAQ if you are new here. If this post was helpful, please rate it!
Re: get XML string returned by web service in java
The Java recommended way is using JAX-WS, and as of JSR 109 and SDK 1.6 JAX-WS is actually part of the SDK. Using a WSDL and the classes provided is about 5 lines of code, AND the best part is that you don't have to write your own XML parser.
Bookmarks