You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ragha <re...@yahoo.com> on 2006/02/28 03:20:19 UTC

Java Client returns null

Hi,
   
  I created a service & deployed in axis.SOAP Response returns correct 
values
  but client returns null for some objects.
   
  Find the below scenario:
   
  Method in webservice returns object of type Employee. Employee class 
has other class objects.
  deploy.wsdd file has beantypemapping for all classes.
  Java Client deserializes all objects including array  
EmployeeType,but EmployeeType[] type is returned as null.
  Objects of type FullTimeEmp/PartTimeEmp is created & assigned to 
EmployeeType[] type.
   
  public class Employee{
   
  private String id;
  privateString name;
   
  private EmployeeType[] type;
   
  //get methods
  //set methods
   
  }
   
  public abstract class EmployeeType{
  int wage;
  int hrs;
  int type;
  }
   
   
  public class FullTimeEmp extends EmployeeType{
  }
   
  public class PartTimeEmp extends EmployeeType{
  }
   
  }


  

 
		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze.