Hi
I use axis2 and jax-ws to generate a web service client.
In the service I have a method that contains in parameter a complex type
public int sendSaveUserPreferencesWS(UserSetWS[] prefs)
the UserSetWS class defined as follow:
public class UserSetWS {
private String setName;
private UserPreferenceWS[] userPreferences;
/**
*
* @param setName
* @param uPreferences
*/
public UserSetWS(String setName, UserPreferenceWS[] uPreferences) {
this.setName = setName;
this.userPreferences = uPreferences;
}
public void setTiti(String[] setNam){
this.setName = setNam[0];
}
public String getSetName() {
return setName;
}
public void setSetName(String setName) {
this.setName = setName;
}
public int setuPreferences(UserPreferenceWS[] userPreferences) {
this.userPreferences = userPreferences;
return 0;
}
public UserPreferenceWS[] getuPreferences() {
return userPreferences;
}
}
after generating the clien code. The class UserSetWS is generated but without the method setuPreferences and I’m enable to use the constructor with parameters. the only constructor is new UserSetWS ()
could you help me ?
thanks in advance