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.

Reply via email to