I am learning asp.net, and trying to understand in consuming a webservice. I am using the following wsdl file
http://www.webservicex.net/uszip.asmx?WSDL
I am using a textbox to enter the zipcode, added the wsdl in the web reference , and am using C# to retrieve data. The structure of the data is as follows:
http://www.webservicex.net/uszip.asmx/GetInfoByZIP
I am not able to understand on how to display the results on a webpage. The following code is what I have until now..
protected void Button1_Click(object sender, EventArgs e)
{
USZip s1 = new USZip();
var input = zipcode.Text.ToString();
String result = s1.GetInfoByZIP(input);
}
It would be great if anyone can give me helpful pointers
Thanks a lot