[ https://issues.apache.org/jira/browse/AXIS2-3208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542346 ]
Suran Jayathilaka commented on AXIS2-3208: ------------------------------------------ I followed the steps you have taken, using tomcat 6, axis2-1.3 on Ubuntu 7.04. I generated the client and created a client in Eclipse and ran, after having added the jars from axis2/lib to the buildpath. I got the correct response. Which is "Hello aaaaaaaaa". Although, in my SayHello class, there was no setName() method. Instead there was a setParam0() method. > 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 > Assignee: Deepal Jayasinghe > > 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]