titlesservice.cs

来自「asp.net技术内幕的书配源码」· CS 代码 · 共 57 行

CS
57
字号
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.0.3705.288
//
//     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.0.3705.288.
// 
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")]
public class TitlesService : System.Web.Services.Protocols.HttpGetClientProtocol {
    
    /// <remarks/>
    public TitlesService() {
        this.Url = "http://localhost/webservices";
    }
    
    /// <remarks/>
    [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.TextReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))]
    public GetTitlesMatches GetTitles() {
        return ((GetTitlesMatches)(this.Invoke("GetTitles", (this.Url + "/Titles.aspx?type=business"), new object[0])));
    }
    
    /// <remarks/>
    public System.IAsyncResult BeginGetTitles(System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("GetTitles", (this.Url + "/Titles.aspx?type=business"), new object[0], callback, asyncState);
    }
    
    /// <remarks/>
    public GetTitlesMatches EndGetTitles(System.IAsyncResult asyncResult) {
        return ((GetTitlesMatches)(this.EndInvoke(asyncResult)));
    }
}

public class GetTitlesMatches {
    
    [System.Web.Services.Protocols.MatchAttribute("<li>(.*?)- \\$", IgnoreCase=true, MaxRepeats=100)]
    public string[] Titles;
    
    [System.Web.Services.Protocols.MatchAttribute("\\$([\\d|\\.]+)", IgnoreCase=true, MaxRepeats=100)]
    public string[] Prices;
}

⌨️ 快捷键说明

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