Re: how to make a SOAP/WSDL client?
On 03/26/2011 03:14 AM, jms wrote:
Am 26.03.2011 01:25, schrieb Arne Vajh??j:
Rule number one when starting to learn web services: forget
that the wire format is XML based.
Drop (explicit) HttpURLConnection and XML parser and
use a web service toolkit instead.
I constructed the request with a StringBuffer and POSTed it to the URL with
the little help of the HttpURLConnection. I then used SaxParser to parse the
reponse
into a document. That's it. It works.
Why use a cnc machine if a screw driver does it?
False analogy.
You'll be fine until you try to build an entire skyscraper with that
screwdriver, and no hammers, saws, ladders, glue, nails, boards, left-handed
stembolts, assistants, ...
Web services involve a whole lot more than parsing XML.
Number theorists can never pass calculus exams because they've only just
re-invented the fundamental theorem by the end of the hour. "Why do I need a
CNC machine (?) when I can derive one?"
If it's so easy for you, why are you here?
Most XML frameworks, in particular web-service frameworks, *are* lightweight!
You press a button, it generates the code, and Bob's your uncle. How much
more lightweight do you need?
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg