It is very easy to generate Axis web service stubs (artifacts) using soapUI tool. NOTE: This can also be done using the commands
Put file in C:\Projects\Jars\axis-1_4\lib
cd C:\Projects\Jars\axis-1_4\lib
java -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java -p<packageName> <WSDLFileName/ URL>
soapUI is a web service, SOA, SOAP testing tool which provides a GUI for generating these stubs for those who do not like the command line. soapUI is a free open source desktop application for inspecting contract, invoking, developing, testing (functional, load, compliance, simulation) web services.
First in File-> Preferences->Tools tab set the Axis 1.x directory where you have downloaded the library files. Axis libraries can be downloaded out here : http://www.apache.org/dyn/closer.cgi/ws/axis/1_4
Tools->Axis 1.0 Artifacts
Put in the WSDL and the directory where you want the stubs to be located
In the Advanced tab you can specify the package where stubs should be placed
Generate button will start the task of generating stubs
In the following articles I will demonstrate how I called the web service using these stubs.
Your blog has been recommended to us as a interviewee's favorite blog!
ReplyDeleteWe would like to do an interview with you about your blog for Blog
Interviewer. We'd
like to give you the opportunity to
give us some insight on the "person behind the blog."
It would just take a few minutes of your time. The interview form can
be submitted online here Submit your
interview.
Best regards,
Mike Thom
Hi, This is very helpful. Can you point to the pages where you were going to "demonstrate how I called the web service using these stubs"? I couldn't find the links in the article.
ReplyDeleteThanks,
Sara
you can use soap ui tool for it
DeleteWhat happened to part 2 :-(
ReplyDelete