开发者

why do we need SvcUtil.exe to create /generate proxy class

Greetings!!

I am new to wcf and have some doubts. I am able 开发者_开发技巧to create one wcf service and also able to consume that service in a client application using "add service reference".. now my question is why do we need SvcUtil.exe to create /generate proxy class and then consumed by client, the same thing can be done using 'Add ref' easily. What is the exact purpose.


You don't - I'm fairly sure they're equivalent. Obviously svcutil can be run from the command line whereas 'Add Web Reference' only works in Visual Studio but they do roughly the same thing.

We use svcutil not add web reference because the huge raft of files it creates became a version control nightmare.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜