WCF client console application deploying
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).
精彩评论