M
Marc
I am trying to study ASP.NET by making some example programmes in Visual Web
Developper 2005 Express Edition.
I am trying to write a client that consumes a simple webservice like:
http://www.webservicex.net/uklocation.asmx?WSDL
I've added the webservice to my project, but how do I proceed? I have found
several examples but nothing clear what I really want. For example I have
found the below but that's with localhost. I do not have the webservice on
local host. Nor do I understand where localhost should be defined anyway.
protected void ConvertButton_Click(object sender, EventArgs e)
{
localhost.Convert wsConvert = new localhost.Convert();
double temperature =
System.Convert.ToDouble(TemperatureTextbox.Text);
FahrenheitLabel.Text = "Fahrenheit To Celsius = " +
wsConvert.FahrenheitToCelsius(temperature).ToString();
CelsiusLabel.Text = "Celsius To Fahrenheit = " +
wsConvert.CelsiusToFahrenheit(temperature).ToString();
}
Please give me some hints!
Marc Wentink
Developper 2005 Express Edition.
I am trying to write a client that consumes a simple webservice like:
http://www.webservicex.net/uklocation.asmx?WSDL
I've added the webservice to my project, but how do I proceed? I have found
several examples but nothing clear what I really want. For example I have
found the below but that's with localhost. I do not have the webservice on
local host. Nor do I understand where localhost should be defined anyway.
protected void ConvertButton_Click(object sender, EventArgs e)
{
localhost.Convert wsConvert = new localhost.Convert();
double temperature =
System.Convert.ToDouble(TemperatureTextbox.Text);
FahrenheitLabel.Text = "Fahrenheit To Celsius = " +
wsConvert.FahrenheitToCelsius(temperature).ToString();
CelsiusLabel.Text = "Celsius To Fahrenheit = " +
wsConvert.CelsiusToFahrenheit(temperature).ToString();
}
Please give me some hints!
Marc Wentink