translate.cs

来自「一个教材管理。b/s结构,采用了webservice技术。」· CS 代码 · 共 48 行

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

namespace NKT.NP.BookCenter.NKT.NP.OnlineTranslate {
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.Web.Services;
    
    
    [System.Web.Services.WebServiceBindingAttribute(Name="WS_TranslateSoap", Namespace="http://nankai.edu.cn/NKT/NP/OnlineTranslate/Translate")]
    public class WS_Translate : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public WS_Translate() {
            this.Url = "http://202.113.27.43/onlinetranslate/translate.asmx";
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://nankai.edu.cn/NKT/NP/OnlineTranslate/Translate/Translate", RequestNamespace="http://nankai.edu.cn/NKT/NP/OnlineTranslate/Translate", ResponseNamespace="http://nankai.edu.cn/NKT/NP/OnlineTranslate/Translate", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string Translate(string strInput) {
            object[] results = this.Invoke("Translate", new object[] {
                        strInput});
            return ((string)(results[0]));
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public System.IAsyncResult BeginTranslate(string strInput, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Translate", new object[] {
                        strInput}, callback, asyncState);
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public string EndTranslate(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
    }
}

⌨️ 快捷键说明

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