You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "G.Long" <jd...@gmail.com> on 2013/05/30 11:43:21 UTC

returned pojo attribute is null

Hello :)

I've got a webservice which is correctly running. One of its method 
return a DataHandler which contains an EObject.

I wanted that method to also return a string attribute. So I created a 
pojo class which would contain the DataHandler and the String.

I updated the interface of the webservice and generated the 
implementation class, the wsdl and the wrappers.

The problem is that when I test the webservice, on server side the 
DataHandler and the String are correctly set but when I get the result 
on client side, the DataHandler attribute of my container class is null.

Here is my pojo container class:

public class ServerLibraryResult {

     private DataHandler data;
     private String path;

     public DataHandler getResult() {
         return this.data;
     }

     public void setDataHandler(DataHandler data) {
         this.data = data;
     }

     public String getPath() {
         return this.path;
     }

     public void setPath(String path) {
         this.path = path;
     }

     public ServerLibraryResult(){

     }
}

Thanks for your help :)
Regards.