📄 sohunews.cs
字号:
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.3705.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
//
// 此源代码由 wsdl, Version=1.0.3705.0 自动生成。
//
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="SohuNewsSoap", Namespace="http://www.sohu.com")]
public class SohuNews : System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public SohuNews() {
this.Url = "http://localhost/ASPExample/lesson46/sohunews.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.sohu.com/GetNews", RequestNamespace="http://www.sohu.com", ResponseNamespace="http://www.sohu.com", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] GetNews(string passport) {
object[] results = this.Invoke("GetNews", new object[] {
passport});
return ((string[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetNews(string passport, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetNews", new object[] {
passport}, callback, asyncState);
}
/// <remarks/>
public string[] EndGetNews(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string[])(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.sohu.com/Register", RequestNamespace="http://www.sohu.com", ResponseNamespace="http://www.sohu.com", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string Register(string user) {
object[] results = this.Invoke("Register", new object[] {
user});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginRegister(string user, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("Register", new object[] {
user}, callback, asyncState);
}
/// <remarks/>
public string EndRegister(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -