shop.cs
来自「asp.net经典案例资料」· CS 代码 · 共 73 行
CS
73 行
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.3705.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
//
// 此源代码由 wsdl, Version=1.0.3705.0 自动生成。
//
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="ShopSoap", Namespace="http://www.nobody.com")]
public class Shop : System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public Shop() {
this.Url = "http://localhost/ASPExample/Lesson45/Shop.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.nobody.com/GetList", RequestNamespace="http://www.nobody.com", ResponseNamespace="http://www.nobody.com", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public System.Data.DataSet GetList() {
object[] results = this.Invoke("GetList", new object[0]);
return ((System.Data.DataSet)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetList(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetList", new object[0], callback, asyncState);
}
/// <remarks/>
public System.Data.DataSet EndGetList(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((System.Data.DataSet)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.nobody.com/OrderGood", RequestNamespace="http://www.nobody.com", ResponseNamespace="http://www.nobody.com", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool OrderGood(string id, int count) {
object[] results = this.Invoke("OrderGood", new object[] {
id,
count});
return ((bool)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginOrderGood(string id, int count, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("OrderGood", new object[] {
id,
count}, callback, asyncState);
}
/// <remarks/>
public bool EndOrderGood(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((bool)(results[0]));
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?