copy of cszse.cs

来自「用于文件传输的Web服务客户端」· CS 代码 · 共 80 行

CS
80
字号
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.573
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by wsdl, Version=1.1.4322.573.
// 
namespace E3.WebService.SZSE {
    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="InterFaceSoap", Namespace="http://tempuri.org/")]
    public class InterFace : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
		public InterFace(string sUrl) 
		{
			this.Url = sUrl;//"http://localhost:88/WebSSZSE/InterFace.asmx";
		}
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/TransFile", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string TransFile(string fileName, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] System.Byte[] b) {
            object[] results = this.Invoke("TransFile", new object[] {
                        fileName,
                        b});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginTransFile(string fileName, System.Byte[] b, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("TransFile", new object[] {
                        fileName,
                        b}, callback, asyncState);
        }
        
        /// <remarks/>
        public string EndTransFile(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetDataSet", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetDataSet(string StrSql, string StrCnn) {
            object[] results = this.Invoke("GetDataSet", new object[] {
                        StrSql,
                        StrCnn});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetDataSet(string StrSql, string StrCnn, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetDataSet", new object[] {
                        StrSql,
                        StrCnn}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndGetDataSet(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?