//------------------------------------------------------------------------------
// <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 Microsoft.VSDesigner, Version 1.0.3705.0.
// 
namespace CurrencyClient.localhost {
    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="CurrencyConverterSoap", Namespace="http://www.josemojica.com/CurrencyServices/")]
    public class CurrencyConverter : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public CurrencyConverter() {
            this.Url = "http://localhost/csharpvqs/Chapter13/CurrencyService/CurrencyConverter.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.josemojica.com/CurrencyServices/Convert", RequestNamespace="http://www.josemojica.com/CurrencyServices/", ResponseNamespace="http://www.josemojica.com/CurrencyServices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Decimal Convert(System.Decimal original, string srcCountry, string dstCountry) {
            object[] results = this.Invoke("Convert", new object[] {
                        original,
                        srcCountry,
                        dstCountry});
            return ((System.Decimal)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginConvert(System.Decimal original, string srcCountry, string dstCountry, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Convert", new object[] {
                        original,
                        srcCountry,
                        dstCountry}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Decimal EndConvert(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Decimal)(results[0]));
        }
    }
}
