Redian新闻
>
deserializer probelm.Ignore upper. Thx
avatar
c*c
2
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)
avatar
c*t
3
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;
: }
: }

avatar
c*c
4
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。