c***c 发帖数: 6234 | 1 It is a little long. But pls help me. I have a Bean
public class MyTestBean implements Serializable {
private String c="";
public MyTestBean(String s1, String s2) {
c= s1+"|"+s2;
}
public String getCValue(){
return c;
}
}
I have EJB service. It works (I can see it on Axis server)
public class ATMDepositBean implements SessionBean {
..... some code here (like ejbCreate())
public MyTestBean deposit(String accountNum, String amount)
| c*****t 发帖数: 1879 | 2 Where is your default constructor??!!!
Also, setter is missing.
【在 c***c 的大作中提到】 : It is a little long. But pls help me. I have a Bean : public class MyTestBean implements Serializable { : private String c=""; : public MyTestBean(String s1, String s2) { : c= s1+"|"+s2; : } : public String getCValue(){ : return c; : } : }
| c***c 发帖数: 6234 | 3 I have default constructor in MyTestBean MytestBean(){}. Just omit it
What is the setter?
Thank you for your time
xmlns:ns="urn:ATMDepositService"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
【在 c*****t 的大作中提到】 : Where is your default constructor??!!! : Also, setter is missing.
|
|