I am new to web services and still messing to start with it, as I implement it in my GET action of form it gave me the response in xml. It is my desire result. I only want to ask, how can I get this xml tree (response) in my code.
Or there any way to call this webservice from code. They also provide soap-envelop, how to use it ???
You would use the WSDL to create Java client classes for the WS, using a tool that the WS toolkit you use provides. E.g., Axis comes with the wsdl2java tool that does this.
Tahir Akram
Ranch Hand
Joined: Jul 03, 2007
Posts: 37
posted
0
I have downloaded Java Web Services Developer Pack 2.0 (Java WSDP), will it works for me, what I want. Mean composing SOAP request and getting SOAP response (the xml file tree)?
Thanks.
Amit M Tank
Ranch Hand
Joined: Mar 28, 2004
Posts: 257
posted
0
Hi Tahir,
Just read the Axis documentation on the net Get the wsdl2java utility, create the client side stubs and servicelocator which can be used to invoke the webservices.
Looking at the Axis 1.x documentation isn't going to help with a JAX-WS stack like JWSDP 2.0. According to Mustang: The fast track to Web services Web Services in Java 6 SE use a tool called wsimport - JWSDP 2.0 uses the same tool.