pojo not working
----------------

                 Key: AXIS2-3208
                 URL: https://issues.apache.org/jira/browse/AXIS2-3208
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.3
         Environment: windowsXP
            Reporter: Guoping Zhang


1) put following class A into $axis2\WEB-INF\pojo
public class A {
public String sayHello(String name) {
return "Hello " + name;
}
public int add(int a, int b) {
return a + b;
}
}

2)wsdl2java.bat -uri http://gpzhang-desktop:8000/axis2/services/A?wsdl -t -u   
to generate stub code

3) invoke stub like:
        try
        {
            SayHello sayHello2 = new SayHello();
            sayHello2.setName("aaaaaaaaaaa");
            System.out.println(new 
AStub("http://gpzhang-desktop:8000/axis2/services/A";).sayHello(sayHello2)
            );
            
        } 
        catch (Exception e)
        {
            e.printStackTrace();
        }

Exception would show:
Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement 
return
       at 
org.apache.ws.axis2.AStub$SayHelloResponse$Factory.parse(AStub.java:1164)
       ... 3 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to