'------------------------------------------------------------------------------
' <autogenerated>
'     This code was generated by a tool.
'     Runtime Version: 1.1.4322.2032
'
'     Changes to this file may cause incorrect behavior and will be lost if 
'     the code is regenerated.
' </autogenerated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.2032.
'
Namespace net.xmethods.www
    
    '<remarks/>
    <System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="CurrencyExchangeBinding", [Namespace]:="http://www.xmethods.net/sd/CurrencyExchangeService.wsdl")>  _
    Public Class CurrencyExchangeService
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        '<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = "http://services.xmethods.net:80/soap"
        End Sub
        
        '<remarks/>
        <System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestNamespace:="urn:xmethods-CurrencyExchange", ResponseNamespace:="urn:xmethods-CurrencyExchange")>  _
        Public Function getRate(ByVal country1 As String, ByVal country2 As String) As <System.Xml.Serialization.SoapElementAttribute("Result")> Single
            Dim results() As Object = Me.Invoke("getRate", New Object() {country1, country2})
            Return CType(results(0),Single)
        End Function
        
        '<remarks/>
        Public Function BegingetRate(ByVal country1 As String, ByVal country2 As String, ByVal callback As System.AsyncCallback, ByVal asyncState As Object) As System.IAsyncResult
            Return Me.BeginInvoke("getRate", New Object() {country1, country2}, callback, asyncState)
        End Function
        
        '<remarks/>
        Public Function EndgetRate(ByVal asyncResult As System.IAsyncResult) As Single
            Dim results() As Object = Me.EndInvoke(asyncResult)
            Return CType(results(0),Single)
        End Function
    End Class
End Namespace
