//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by 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="ISoapFindMP3binding", Namespace="http://www.borland.com/soapServices/")]
[System.Xml.Serialization.SoapIncludeAttribute(typeof(TMP3Result))]
public class ISoapFindMP3service : System.Web.Services.Protocols.SoapHttpClientProtocol {
    
    /// <remarks/>
    public ISoapFindMP3service() {
        this.Url = "http://www.agnisoft.com/cgi-bin/soapmp3search.exe/soap/ISoapFindMP3";
    }
    
    /// <remarks/>
    [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:SoapFindMP3Intf-ISoapFindMP3#SearchMP3", RequestNamespace="urn:SoapFindMP3Intf-ISoapFindMP3", ResponseNamespace="urn:SoapFindMP3Intf-ISoapFindMP3")]
    [return: System.Xml.Serialization.SoapElementAttribute("return")]
    public MP3Result[] SearchMP3(string SearchString, int NumResults) {
        object[] results = this.Invoke("SearchMP3", new object[] {
                    SearchString,
                    NumResults});
        return ((MP3Result[])(results[0]));
    }
    
    /// <remarks/>
    public System.IAsyncResult BeginSearchMP3(string SearchString, int NumResults, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("SearchMP3", new object[] {
                    SearchString,
                    NumResults}, callback, asyncState);
    }
    
    /// <remarks/>
    public TMP3Result[] EndSearchMP3(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((TMP3Result[])(results[0]));
    }
}

/// <remarks/>
[System.Xml.Serialization.SoapTypeAttribute("TMP3Result", "urn:RegMp3Class")]
public class TMP3Result {
    
    /// <remarks/>
    public string URL;
    
    /// <remarks/>
    public string FileName;
    
    /// <remarks/>
    public string Size;
    
    /// <remarks/>
    public string Speed;
}

[System.Xml.Serialization.SoapTypeAttribute("MP3Result", "urn:RegMp3Class")]
public class MP3Result {
    
    /// <remarks/>
    public string URL;
    
    /// <remarks/>
    public string FileName;
    
    /// <remarks/>
    public string Size;
    
    /// <remarks/>
    public string Speed;
}
public class Something
{
    public static void Main() {
      ISoapFindMP3service MyService = new ISoapFindMP3service();
      MP3Result[] Res = MyService.SearchMP3("floyd", 5) ;
      for (int i=0;i<Res.Length;i++)
        Console.WriteLine(Res[i].URL);
    }
}
