Want only Getter but no Setter.....JAX-RPC value type
Consider the following class,
public class A
{
private int param_1;
private int param_2;
public A(){}
public int getParam_1()
{
return param_1;
}
public void setParam_1(int param_1)
{
this.param_1=param_1;
}
public int getParam_2()
{
return param_2;
}
public void setParam_2(int param_2)
{
this.param_2=param_2;
}
}
When i use this class as input parameter in a Web service method,
it works perfectly allright as it should.
But i want client side only to get the value of param_1 field, dont want them to set the value.In that case what should i do?
When client side generates java files from WSDL its getting setter for param_1, how can i prevent them from setting the param_1 value?
Looking from your response.... Thanks

