ticketsservice.cs

来自「2001年度.net程序大赛清华大学作品 网上订票系统」· CS 代码 · 共 79 行

CS
79
字号
//------------------------------------------------------------------------------
// <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 GateWay.com.test.ticket {
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.Web.Services;
    
    
    [System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tsinghua.edu.cn/DotNet/")]
    public class Service : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public Service() {
            this.Url = "http://ticket.test.com/TicketsService/TicketsService.asmx";
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tsinghua.edu.cn/DotNet/Order", RequestNamespace="http://tsinghua.edu.cn/DotNet/", ResponseNamespace="http://tsinghua.edu.cn/DotNet/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int Order(OrderContent ocContent) {
            object[] results = this.Invoke("Order", new object[] {
                        ocContent});
            return ((int)(results[0]));
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public System.IAsyncResult BeginOrder(OrderContent ocContent, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Order", new object[] {
                        ocContent}, callback, asyncState);
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public int EndOrder(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((int)(results[0]));
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tsinghua.edu.cn/DotNet/Test", RequestNamespace="http://tsinghua.edu.cn/DotNet/", ResponseNamespace="http://tsinghua.edu.cn/DotNet/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int Test() {
            object[] results = this.Invoke("Test", new object[0]);
            return ((int)(results[0]));
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public System.IAsyncResult BeginTest(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Test", new object[0], callback, asyncState);
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        public int EndTest(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((int)(results[0]));
        }
    }
    
    public class OrderContent {
        
        public string szUserID;
        
        public string szDestination;
        
        public string szTime;
        
        public int iCount;
        
        public int iMethod;
    }
}

⌨️ 快捷键说明

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