Reference.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:4k
源码类别:

C#编程

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version: 1.1.4322.573
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if 
  7. //     the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. // 
  11. // This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.573.
  12. // 
  13. namespace PCSWebApp4.eventDataService {
  14.     using System.Diagnostics;
  15.     using System.Xml.Serialization;
  16.     using System;
  17.     using System.Web.Services.Protocols;
  18.     using System.ComponentModel;
  19.     using System.Web.Services;
  20.     
  21.     
  22.     /// <remarks/>
  23.     [System.Diagnostics.DebuggerStepThroughAttribute()]
  24.     [System.ComponentModel.DesignerCategoryAttribute("code")]
  25.     [System.Web.Services.WebServiceBindingAttribute(Name="Service1Soap", Namespace="http://tempuri.org/")]
  26.     public class Service1 : System.Web.Services.Protocols.SoapHttpClientProtocol {
  27.         
  28.         /// <remarks/>
  29.         public Service1() {
  30.             this.Url = "http://localhost/PCSWebSrv2/Service1.asmx";
  31.         }
  32.         
  33.         /// <remarks/>
  34.         [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetData", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  35.         public System.Data.DataSet GetData() {
  36.             object[] results = this.Invoke("GetData", new object[0]);
  37.             return ((System.Data.DataSet)(results[0]));
  38.         }
  39.         
  40.         /// <remarks/>
  41.         public System.IAsyncResult BeginGetData(System.AsyncCallback callback, object asyncState) {
  42.             return this.BeginInvoke("GetData", new object[0], callback, asyncState);
  43.         }
  44.         
  45.         /// <remarks/>
  46.         public System.Data.DataSet EndGetData(System.IAsyncResult asyncResult) {
  47.             object[] results = this.EndInvoke(asyncResult);
  48.             return ((System.Data.DataSet)(results[0]));
  49.         }
  50.         
  51.         /// <remarks/>
  52.         [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddEvent", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  53.         public int AddEvent(string eventName, string eventRoom, string eventAttendees, string eventDate) {
  54.             object[] results = this.Invoke("AddEvent", new object[] {
  55.                         eventName,
  56.                         eventRoom,
  57.                         eventAttendees,
  58.                         eventDate});
  59.             return ((int)(results[0]));
  60.         }
  61.         
  62.         /// <remarks/>
  63.         public System.IAsyncResult BeginAddEvent(string eventName, string eventRoom, string eventAttendees, string eventDate, System.AsyncCallback callback, object asyncState) {
  64.             return this.BeginInvoke("AddEvent", new object[] {
  65.                         eventName,
  66.                         eventRoom,
  67.                         eventAttendees,
  68.                         eventDate}, callback, asyncState);
  69.         }
  70.         
  71.         /// <remarks/>
  72.         public int EndAddEvent(System.IAsyncResult asyncResult) {
  73.             object[] results = this.EndInvoke(asyncResult);
  74.             return ((int)(results[0]));
  75.         }
  76.     }
  77. }