[C#] 纯文本查看 复制代码
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using Microsoft.Web.Services3;
//
// 此源代码由 wsdl 自动生成, Version=4.0.30319.1。
//
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="LISServiceSoap", Namespace="http://tempuri.org")]
public partial class LISService : WebServicesClientProtocol//System.Web.Services.Protocols.SoapHttpClientProtocol
{
private System.Threading.SendOrPostCallback GetDataOperationCompleted;
/// <remarks/>
public LISService() {
this.Url = "http://194.1.4.16:57772/csp/lis2//LIS.WS.DHCLISService.cls";
}
/// <remarks/>
public event GetDataCompletedEventHandler GetDataCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LIS.WS.DHCLISService.GetData", RequestNamespace="http://tempuri.org", ResponseNamespace="http://tempuri.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string GetData(string ClassName, string FuncName, string Param, string Session) {
object[] results = this.Invoke("GetData", new object[] {
ClassName,
FuncName,
Param,
Session});
return ((string)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetData(string ClassName, string FuncName, string Param, string Session, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetData", new object[] {
ClassName,
FuncName,
Param,
Session}, callback, asyncState);
}
/// <remarks/>
public string EndGetData(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string)(results[0]));
}
/// <remarks/>
public void GetDataAsync(string ClassName, string FuncName, string Param, string Session) {
this.GetDataAsync(ClassName, FuncName, Param, Session, null);
}
/// <remarks/>
public void GetDataAsync(string ClassName, string FuncName, string Param, string Session, object userState) {
if ((this.GetDataOperationCompleted == null)) {
this.GetDataOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDataOperationCompleted);
}
this.InvokeAsync("GetData", new object[] {
ClassName,
FuncName,
Param,
Session}, this.GetDataOperationCompleted, userState);
}
private void OnGetDataOperationCompleted(object arg) {
if ((this.GetDataCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetDataCompleted(this, new GetDataCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
public delegate void GetDataCompletedEventHandler(object sender, GetDataCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.1")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetDataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetDataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public string Result {
get {
this.RaiseExceptionIfNecessary();
return ((string)(this.results[0]));
}
}
}