void DoSomethingTest()
{
localhost
service
// do Asyn calling here
service
}
void service_HelloWorldCompleted(object sender
{
if (e
{
MessageBox
}
else
{
MessageBox
}
}
服務器端代碼
[WebService(Namespace =
[WebServiceBinding(ConformsTo = WsiProfiles
public class Service : System
{ public Service () {
}
[WebMethod] public string HelloWorld() {
return
}
}
很簡單
From:http://tw.wingwit.com/Article/program/net/201311/11782.html