开发者

Auto Generating SOAP WS Proxy in VS2008

开发者 https://www.devze.com 2023-02-06 16:43 出处:网络
It seems that there are two methods for auto generating web service proxies in VS2008 from a wsdl. wsdl.exe

It seems that there are two methods for auto generating web service proxies in VS2008 from a wsdl.

I've been using wsdl.exe because I like having access to the class - and when I add a reference, I haven't been able to find the generated proxy code. Is there a benefit of just adding a reference that I may be overlooking?


Adding a service reference is the way to go. As pointed out to me on another thread, it is prudent that I strongly encourage you to avoid using wsdl.exe unless you have a very good reason to be using it. For your reference, the VS option Add Web Reference is a wrapper over wsdl.exe and creates proxies for .NET 1.1 or 2.0 clients. Add Service Reference is a wrapper over svcutil.exe and is used to create .NET 3.0+ clients.

0

精彩评论

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

关注公众号