Hi All,
I am newbie to
Java Web Services. I am trying to learn java web services with axis2. I am using jdk1.5, axis2 1.4.1 and
tomcat 5.5. I have also installed the eclipse plugins - axis2-eclipse-codegen-wizard & axis2-eclipse-service-archiver-wizard. I began to write a simple program following the site :
http://wso2.org/library/1719. All the steps for the part I were completed successfully, but when I came to part 2 (Axis2 Codegen Wizard - Generate java source code from a WSDL file.) four files by the name of (TemperatureConverterTemperatureConverterSOAP11PortCallbackHandler.java, TemperatureConverterTemperatureConverterSOAP11PortStub.java, TemperatureConverterTemperatureConverterSOAP12PortCallbackHandler.java and TemperatureConverterTemperatureConverterSOAP12PortStub.java) were generated. I got compilations errors in the 2nd and 4th files (i.e. both the PortStub files).
I am able to understand all the steps of creating a basic web service program.
1. We need to create the service file
2. We need to create the service descriptor file (services.xml)
3. We need to create the axis archieve .aar files and deploy it to service directory in webapps folder of tomcat.
4. We need to create a client program that can access the web service.
Am I missing any step?. Do we need to create stubs and CallBackHandler also.?
I know that there are 4 ways to create a service class & client program namely:
1. Generating the service and creating a client using AXIOM.
2. Generating the service and client using ADB.
3. Generating the service and client using XMLBeans.
4. Generating the service and client using JiBX.
I don't know by what method the axis2-eclipse-codegen-wizard plugin of eclipse uses to write the client. Also I wanted to know whether it is necessary to write the Portstubs and PortCallbackHandler for the web service OR is it sufficient to write only Service class, services.xml and Client class for a Web Service. Please guide me on what are the steps that are necessary for writing a web service say using AXIOM. Please give me the links for some pdfs or some tutorial that will me in understanding web service using axis2.
Please help me as I am on it for many days. Thanks in advance.