[asp.net]wcf client

  • 373
  • 0

摘要:[asp.net]wcf client

1.在專案裡面,加入服務參考,例如http://localhost/MyFirstService/Service.svc

2.程式碼呼叫如下

ServiceReference1.ServiceClient sc = new ServiceReference1.ServiceClient();
sc.GetOOXXData("xxooParam");

3.結束