-
1. Re: A class as a parameter in a webservice
nax32 Jul 21, 2006 2:10 AM (in response to nax32)anyone?
-
2. Re: A class as a parameter in a webservice
pablojavierpy Jul 21, 2006 7:34 AM (in response to nax32)How are you "generating" the WSDL?
As far as I can tell by your annotations, you are using JBossWS. You don't need to generate WSDLs yourself. Just deploy your application into a JBoss-4.0.4.GA with JBossWS upgraded to JBossWS-1.0.1.GA and WSDL will be correctly generated with your class "Libro".
Don't forget to include the class "Libro" in your package.
GL. -
3. Re: A class as a parameter in a webservice
estrellarichardson Jul 24, 2006 1:29 PM (in response to nax32)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;
}