Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
似乎有两种方法可以在 VS2008 中从 wsdl 自动生成 Web 服务代理。
我一直在使用 wsdl.exe,因为我喜欢访问该类 - 当我添加引用时,我无法找到生成的代理代码。仅添加我可能会忽略的参考是否有好处?
添加服务引用是要走的路。正如在另一个线程上向我指出的那样,我强烈建议您避免使用 wsdl.exe,除非您有充分的理由使用它,这是谨慎的做法。供您参考,VS 选项 Add Web Reference 是 wsdl.exe 的包装器,并为 .NET 1.1 或 2.0 客户端创建代理。添加服务参考是 svcutil.exe 的包装器,用于创建 .NET 3.0+ 客户端。