使用webservice,生成Request、Response类如何使用?

pfworld CSDN会员 pfworld 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区


[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="userLogin", WrapperNamespace="http://webservice.cms.hikvision.com", IsWrapped=true)]
public partial class userLoginRequest {

[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://webservice.cms.hikvision.com", Order=0)]
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string request;

public userLoginRequest() {
}

public userLoginRequest(string request) {
this.request = request;
}
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ServiceModel.MessageContractAttribute(WrapperName="userLoginResponse", WrapperNamespace="http://webservice.cms.hikvision.com", IsWrapped=true)]
public partial class userLoginResponse {

[System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://webservice.cms.hikvision.com", Order=0)]
[System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
public string @return;

public userLoginResponse() {
}

public userLoginResponse(string @return) {
this.@return = @return;
}
}



一般的使用webservice都是方法,但是现在使用第三方webservice直接出现的是Request、Response类,请问这个如何使用?

...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
pfworld CSDN会员
Web Services 12,164 成员 16,322 内容