Hi,

Please see these steps I did and help me where did it went wrong

Test done with Axis2 Trunk

** Create this anotated class

import javax.jws.WebMethod;
import javax.jws.WebService;

@WebService
public class TestJAXWSEchoService {
   
    @WebMethod
    public String echo(String s) {
        return s;
    }

}

** compile it and created a jar (TestJAXWSEchoService.jar) with that and put it in the repository/servicejars directory

** check for the entery on axis2.xml with the JAXWSDeployer

   <!--POJO deployer , this will alow users to drop .class file and make that into a service-->
    <deployer extension=".class" directory="pojo" class="org.apache.axis2.deployment.POJODeployer"/>
    <deployer extension=".jar" directory="servicejars" class="org.apache.axis2.jaxws.framework.JAXWSDeployer"/>

** copy the jaxws-tools.jar and jaxwsrt.jar ship by sun to the axis2 lib directory

** start axis2server


** results

[INFO] Deploying artifact : TestJAXWSEchoService.jar
[INFO] Deploying JAXWS annotated class TestJAXWSEchoService as a service - TestJAXWSEchoServiceService.TestJAXWSEchoServicePort

** it was deployed with the name TestJAXWSEchoServiceService.TestJAXWSEchoServicePorts  ,  is this the correct name according to the 2.1 specification?

** acess url http://localhost:8080/axis2/services/

Deployed services
TestJAXWSEchoServiceService.TestJAXWSEchoServicePort
Available operations

    * echo

** to access the wsdl http://localhost:8080/axis2/services/TestJAXWSEchoServiceService.TestJAXWSEchoServicePort?wsdl

<error>
<description>Unable to generate WSDL 1.1 for this service</description>

<reason>
If you wish Axis2 to automatically generate the WSDL 1.1, then please +set useOriginalwsdl as false in your services.xml
</reason>
javax.xml.ws.WebServiceException: Error occurred generating WSDL file for Web service implementation class {TestJAXWSEchoService}: {java.lang.Exception: A WSDL Definition could not be generated for the implementation class: TestJAXWSEchoService}
    at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:187)
    at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
    at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
    at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1319)
    at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
    at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
    at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
    at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Exception: A WSDL Definition could not be generated for the implementation class: TestJAXWSEchoService
    at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
    ... 10 more
</error>



** As I refered into http://ws.apache.org/axis2/1_4/jaxws-guide.html#BottomUpService it seems the pojo is enough and there is not need to attach a wsdl in to this.

--
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01 9A0F