You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Guoping Zhang (JIRA)" <ji...@apache.org> on 2007/09/18 07:46:43 UTC

[jira] Created: (AXIS2-3208) pojo not working

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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-3208) pojo not working

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-3208.
--------------------------------------

    Resolution: Fixed

seems like issue is fixed now 

Thanks
Deepal

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3208) pojo not working

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-3208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-3208:
-------------------------------------

    Assignee: Deepal Jayasinghe

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3208) pojo not working

Posted by "Suran Jayathilaka (JIRA)" <ji...@apache.org>.
    [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org