Click here to Skip to main content
15,936,122 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

How can we consume webservice in smart device application.

When I run application on Emulation i got following error

Error:Web Exception
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/HelloWorld", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string HelloWorld() {
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
}
Posted
Updated 19-Aug-11 19:31pm
v2

1 solution

Service obj = new Service();
obj.Url = "http://www.SerivceURL.asmx";
label1 .Text = obj.HelloWorld();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900