如何从 .net 中的 WSDL 文件生成客户端? [英] How to generate the client from a WSDL file in .net?

查看:40
本文介绍了如何从 .net 中的 WSDL 文件生成客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在不使用 Visual Studio 本身的情况下从 WSDL 文件生成客户端,但不知道从哪里开始最好.

I'm trying to generate a client from a WSDL file without using visual studio itself and didn't know what the best place was to start.

客户需要获取相同的文件并为 PHP 应用程序生成客户端,我想通过自己(在工作室之外)创建客户端来证明 WSDL 是有效的.

A customer needs to take this same file and generate a client for a PHP application and I wanted to prove the WSDL was valid by creating a client myself (outside of studio).

推荐答案

svcutil.exe 是 Windows SDK 附带的命令行工具.它创建了一个 WCF 客户端(C# 代码文件加配置文件,其中的元素可以放在你的 web.config 或 app.config 中).

svcutil.exe is a commandline tool that comes with the Windows SDK. It creates a WCF client (C# code file plus configuration file, the elements of which can be placed in your web.config or app.config).

我相当确定您可以将 UNC 路径传递给 WSDL 而不是 URL.

I'm fairly sure you can pass a UNC path to a WSDL rather than a URL.

这篇关于如何从 .net 中的 WSDL 文件生成客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆