How about MyItem as I can see it is a not a Java bean. To be a valid
Java bean you need to have following stuff in your class;
 - default constructor
 - getter and setter for each filed you want to expose

Thanks,
Deepal
> Hello all, 
>
> I am having a problem with Axis2. I have done some tests and I can not
> advance. All the inner attributes of the objects I receive are null.
>
> In the server side I have a simple class:
>
> public class MyItem implements Serializable {
>       private static final long serialVersionUID = 1L;
>       
>       String message;
>       
>       public ListItemArray() {
>               message = "Test";
>       }
>       
>       public String getMsg() {
>               return message;
>       }
>       public void setMsg(String message) {
>               this.message = message;
>       }
> }
>
> And a method:
>
> public MyItem getItem(){
>    MyItem i = new MyItem();
>    return i;
> }
>
> In the client size I have an stub like:
>
>    WSStub customer = null;
>    WSStub.GetItemResponse response = null;
>                
>    try {
>       // creamos el soporte y la peticion
>       customer = new WSStub (sEndPoint);
>
>       // invocamos al web service
>       try {
>               response = customer.getItem();
>       } catch (Exception e) {
>               e.printStackTrace();
>       }
>
>    MyItem i = response.get_return();
>
> And inside the MyItem object, the message field is null. I have tried to
> return a String and it is ok.
>
> Can anyone help me?
>   


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org

Reply via email to