[jboss-user] [JBossWS] - Re: A class as a parameter in a webservice

EstrellaRichardson do-not-reply at jboss.com
Mon Jul 24 13:29:29 EDT 2006


Actually,
   I think what you need to do is to add getter/setter methods to your class.  Make it comply with the Java beans rules and when you run WSTools, it will give the specifics of your libro class. 

Example:
import java.io.Serializable;
public class InfoObj implements Serializable {
   
   private static final long serialVersionUID = 0;

   private String contactName = null;
   private String address = null;
   private String city = null;
   private String state = null;
   private String zip = null;
   
   public void setContactName(String name){
      contactName = name;
   }
   public void setAddress(String addr){
      address = addr;
   }
   public void setCity(String iCity){
      city = iCity;
   }
   public void setState(String st){
      state = st;
   }
   public void setZip(String iZip){
      zip = iZip;
   }

   public String getContactName(){
      return contactName;
   }
   public String getAddress(){
      return address;
   }
   public String getCity(){
      return city;
   }
   public String getState(){
      return state;
   }
   public String getZip(){
      return zip;
   }
   


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960477#3960477

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960477



More information about the jboss-user mailing list