You probably figured this out by now. Per your note, you are using Axis 2 1.5. However, the tutorial link states in Section 2.2 that version 1.5 is currently not supported. There is also a link to Axis 2 1.4.1 which is supported. So please try that version and see if it works. Here is another tutorial that refers to 1.4.1. And the Axis 2 Tools page indicates that the tools are supported only for 1.4.
Thanks a lot for this nice link. Fortunately I tried this link earlier but could not execute even the simplest one. I tried this example again but faced the same problem again. I think this work around would be beneficial for others as well. First I changed the workspace and then I tried with Axis2-1.4.1. It started work magically.
Thanks a lot Srini for your help.
God Gave Me Nothing I Wanted, He Gave Me Everything I Needed.
For those of you interested in this, I think we have a workaround to using Eclipse with Axis 1.5.1.
I tried this Axis tutorial in Eclipse using Axis 2 version 1.5.1. As expected, there were problems. I got the following issues:
1. NoClassDefFoundError errors for HTTPResponseFactory
The class is in httpcore-4.0.jar which is not added to the library path in the tooling. Eclipse tooling currently supports Axis 1.4.1, but not 1.5.1. So the jar had to be copied from C:\axis2-1.5.1\lib (<axis directory>/lib) to C:\apache-tomcat-6.0.26\lib (<tomcat directory>/lib). I got this information here.
2. NoClassDefFoundError errors for AxisAdminServlet
As it turns out, in the version change, AxisAdminServlet was moved from org.apache.axis2.transport.http package to org.apache.axis2.webapp. Got this information here. So I made that change in the web.xml,
R Srini wrote:
Just a couple of minor one-time changes, and we should be able to use existing Eclipse tooling with Axis 1.5.1 - of course, until we encounter another problem.
Hope that helps someone.
I am new to Web Service. I want to know how can I call my web service . What I understand from various resources is that , Web Service is a way by which we can expose our Interfaces (in this case it is in Java) to the users (say client) of my web service. I still doubt that how can the client will invoke my service?
I gone through with the Web Service FAQ. Here it is mentioned that we can test the web services, we can see the implementation of Free and Commercial Web Services.
What does that really mean?
I executed the Web Service using the above mentioned example. But I am still not aware that how will my client (JSP based project running on different URL) use this service? I know only about this
All major SOAP implementation (like Axis2 and JAX-WS/Metro) come with tools that can create client-side Java code given the WSDL of the WS. For example, Axis' tool is called wsd2ljava. If you work through the examples that come with the SOAP stack you're using, you'll find at least one that describes how to use that tool.
I found some pretty shells, some sea glass and this lovely tiny ad:
a bit of art, as a gift, the permaculture playing cards