.NET SOAP Web 服务序列化错误
我想创建通用类(带有对象类型参数)用于将对象发送到 SOAP Web 服务。
public class ReturnObject
{
public int ReturnCode;
public object ReturnValue;
public ReturnObject() { }
public ReturnObject(int resultCode, object resultValue)
{
this.ReturnCode = resultCode;
this.ReturnValue = resultValue;
}
}
但我收到序列化错误。
谁能建议我,我哪里错了?
I want to create universal class (with object type parameter) for sending object to SOAP web service.
public class ReturnObject
{
public int ReturnCode;
public object ReturnValue;
public ReturnObject() { }
public ReturnObject(int resultCode, object resultValue)
{
this.ReturnCode = resultCode;
this.ReturnValue = resultValue;
}
}
But I receive serialization error.
Can anyone suggest me, where I'm wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的猜测是 ReturnValue 是 SOAP 序列化程序不支持的某种类型。
当然,至少能看到错误就好了……
My guess is that ReturnValue is some type that the SOAP serializer doesn't support.
Sure would be nice to at least see the error though...