Hi,
I am new to webserivce, and did a little exercise as given below.
I followed a simple procedure to create a web service:
1 -> For Service --> Write a simple bean in a dynamic web project, with some methods. Right click on the dynamic web project and say New --> Web Service --> Bottom up approach -->Select the bean written and finish. It will create a WSDL file.
2 -> Client --> Create a new dynamic web project. New -->Web Service Client --> Top down --> Select the WSDL and finish. It will generate the stub, the locaters etc. Invoke the service as :
PackFour.ClassFourServiceLocator cfsl = new ClassFourServiceLocator();
PackFour.ClassFour cf = cfsl.getClassFour();
System.out.println(cf.getStr());
This is tested successfully.
My question : Is this using
SOAP? My prediction is no, as I did not configure the Axis2 runtime for the project.
If this is the case, how does the client communicate to the service?
If yes, why do I need to set the Axis2 runtime?
Also, while setting the axis2 runtime, i downloaded it from
http://apache.mirrors.tds.net/ws/axis/1_4/axis-bin-1_4.zip
But while creating a new dynamic web project, with Axis2 selected in project facet, it gives error:
"Failed while installing Axis2 Web Services Core 1.1.
The Axis2 facets cannot be installed since the Axis2 runtime location has not been set.
Go to the Web Services preference page and set the Axis2 runtime location under Axis2 Preferences.
D:\workSpace\.metadata\.plugins\org.apache.axis2.facet\exploadedwar\WEB-INF\lib\axis-ant.jar (The system cannot find the path specified)
"
I have already set the runtime as directed, but still I am getting the error.
Regards,
Amol