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.
我有一个来自第三方服务提供商的大型 WSDL 文件。
当我使用 wsdl 工具命令行时,有没有办法挑选我想要的服务、合同、端点?
由于 wsdl 中包含大量服务,Visual Studio 崩溃。
更新 似乎这是不可能的。只需编辑 wsdl 以仅包含相关合同。第三方提供的解决了这个问题。
将您的服务引用预编译到一个单独的类库中。
免责声明: 我知道这并没有具体回答您的问题,但它应该解决您的根本问题,即当您引用从 WSDL 生成的代码时,Visual Studio 运行缓慢或崩溃。如果 Visual Studio 在您添加服务引用时崩溃,这可能对您没有帮助。在那种情况下,我道歉。