H
haroldbk
I have a small Asp .net 2.0 application with a web reference to a
Webservice.
Running locally works fine, but when I run it from the Web Server the
exception Unable to Connect to Remote Server is returned.
Tried 2 different Web Services - both locally on from the Web server.
This is a code snippet:
try
{
net.webservicex.www.CurrencyConvertor cc = new
net.webservicex.www.CurrencyConvertor();
cc.Url = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL";
net.webservicex.www.Currency dollar = net.webservicex.www.Currency.USD;
net.webservicex.www.Currency shekel = net.webservicex.www.Currency.ILS;
string rate = cc.ConversionRate(dollar, shekel).ToString();
Label4.Text = rate;
}
catch (Exception ex)
{
Label4.Text = ex.Message.ToString();
}
Any ideas?
Thanks,
Harold
Webservice.
Running locally works fine, but when I run it from the Web Server the
exception Unable to Connect to Remote Server is returned.
Tried 2 different Web Services - both locally on from the Web server.
This is a code snippet:
try
{
net.webservicex.www.CurrencyConvertor cc = new
net.webservicex.www.CurrencyConvertor();
cc.Url = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL";
net.webservicex.www.Currency dollar = net.webservicex.www.Currency.USD;
net.webservicex.www.Currency shekel = net.webservicex.www.Currency.ILS;
string rate = cc.ConversionRate(dollar, shekel).ToString();
Label4.Text = rate;
}
catch (Exception ex)
{
Label4.Text = ex.Message.ToString();
}
Any ideas?
Thanks,
Harold