开发者

WCF client console application deploying

开发者 https://www.devze.com 2023-01-11 22:18 出处:网络
Assuming serviceUrl is read from exe.config ( app.config in IDE ) var binding = new WSHttpBinding(); ...

Assuming serviceUrl is read from exe.config ( app.config in IDE )

 var binding = new WSHttpBinding();
 ...    
 client = new ContentServiceClient(binding, new EndpointAddress(serviceURL));

Do I just need exe itself ( given no dependencies ) and exe.config for this client to invoke service on other box. I generated service re开发者_JAVA百科ference when running service locally , looks like all those files purely for parameterless service call from IDE.


You need

  • .NET 3.0 or higher
  • your EXE and exe.config
  • network connectivity

and yes - that's all you need to call a service on a remote machine. The WCF runtime and all are part of .NET (3.0 or higher).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号