thanks Martin
as you said, i have already created a class "Currency Converter"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExternalWebServices.CurrencyConverterService;
using System.ServiceModel;
namespace ExternalWebServices
{
public class CurrencyConverter
{
public string getCurrencyRate(String cur1, string cur2)
{
BasicHttpBinding httpBinding = new BasicHttpBinding();
EndpointAddress endPoint = new EndpointAddress(
@"currencyconverter.kowabunga.net/converter.asmx");
var soapClient = new ConverterSoapClient(httpBinding, endPoint);
var usdToinr = soapClient.GetConversionRate(cur1.ToString(), cur2.ToString(), DateTime.Now);
return usdToinr.ToString();
}
}
}
Kindly let me know what code need to be change in below class
class ConsumeServiceInDAX
{
/// <summary>
/// Runs the class with the specified arguments.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
public static void main(Args _args)
{
ExternalWebServices.currencyConverter currencyCoverter =
new ExternalWebServices.currencyConverter();
var convRate = str2Num(currencyCoverter.getCurrencyRate("USD","INR"));
info(strFmt("%1", convRate));
}
}
if i removed " namespace ExternalWebServices" then getting below error

Thanks!