如何准确地解决wsdl.exe? [英] how to address wsdl.exe exactly?

查看:134
本文介绍了如何准确地解决wsdl.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用VS 2015命令提示生成基于.wsdl和.xsd-schema文件的.asmx文件。我试图遵循如何使用wsdl.exe生成用于构建Web服务文件的.asmx的所有说明,但不幸的是,我一直在VS 2015 C#中得到错误消息,该命令无效。我一直尝试在命令提示符下调用wsdl.exe文件(有和没有任何其他选项),该命令无法正常工作。我尝试了以下组合:简单:wsdl - )wsdl.exe - )[本地WSDL.EXE文件的完全合格路径] - )wsdl / serverInterface [.wsdl文件的FIlename] [.xsd文件的文件名] - ) wsdl / serverInterface [.wsdl文件的完全限定路径] [.xsd文件的完全限定路径] - )+组合等



...好像是wsdl.exe命令本身无法理解/解释,即使wsdl.exe文件存在并存储在C:\Program Files(x86)\ Micro SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\


有没有人知道如何正确地工作/地址(使用)wsdl.exe,或者哪些错误导致此错误信息!?

I want to generate with the VS 2015 command prompt an .asmx file based on a .wsdl and .xsd-schema file. I was trying to follow all the instructions of how to generate a .asmx for building a web service file with wsdl.exe, but unftorunately i got all the time the error message within VS 2015 C#, that the command is not valid. All the time when I try to call the wsdl.exe file within the command prompt (with and without any further options) the command is not working. I tried the following combinations: simply: wsdl -) wsdl.exe -) [FULLY QUALIFIED PATH OF LOCAL WSDL.EXE FIle] -) wsdl /serverInterface [FIlename of the .wsdl file] [Filename of the .xsd file] -)wsdl /serverInterface [fully qualified path of .wsdl file] [fully qualified path of .xsd file] -) + combinations etc.

...it seems like the wsdl.exe command itself cannot be understood/interpreted, even the wsdl.exe file exist and is stored within C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

Does anyone has an idea how to work/adress (with) wsdl.exe correctly, or which possible errors are causing this error message!?

推荐答案

这个问题似乎没有任何意义。没有解决WSDL.exe这样的问题。这只是一些开发工具,一个用于为XML Web服务和客户端生成代码的应用程序: https://msdn.microsoft.com/en-us/library/7h3ystb6%28v=vs.100%29.aspx [ ^ ]。



如果应用程序本身可用,我无法理解如何运行(仅限控制台)应用程序时出现问题。但是,如果您在特殊安装环境中运行它,可以保证某些此类应用程序可以运行,这是通过Visual Studio安装完成的。每个版本的Visual Studio在系统菜单中名称为Visual Studio Tools的目录下提供一组快捷方式,该链接的名称将类似于VS * *命令提示符。如果单击此链接,它将执行标准Windows命令行框,其中包含已规定的所有路径和其他定义,因此您可以使用简单文件名(例如WSDL.EXE)直接运行所有应用程序,带参数或没有。



如果你只是在一些随机目录(或任何其他提供命令行输入的应用程序中的命令行文本框)中执行CMD.EXE,你会看到,很自然。消息

The question does not seem to make any sense. There is no such thing as "addressing WSDL.exe". This is nothing but some development tool, an application use to generate code for XML Web services and clients: https://msdn.microsoft.com/en-us/library/7h3ystb6%28v=vs.100%29.aspx[^].

I cannot understand how anyone can have problems running a (console-only) application if the application itself is available. However, some of such applications can be guaranteed to run if you run it in a specially setup environment, which is done for you with Visual Studio installation. Each version of Visual Studio provides a set of shortcuts under the directory prescribed in the system menu under the name "Visual Studio Tools", and the link will have the name like "VS* * Command Prompt". If you click on such link, it will execute a standard Windows command-line box with all paths and other definitions already prescribed, so you can run all applications directly, using simple file names, such as "WSDL.EXE", with parameter or not.

If you simply execute CMD.EXE in some random directory (or command-line text box in any other application providing command-line input), you will see, quite naturally. the message
'wsdl.exe' is not recognized as an internal or external command, operable program or batch file.



难怪,命令行解释器不会知道在哪里找到这样命名的文件。还可能需要一些其他定义。因此,请使用VS命令提示符。



您不必了解需要和缺少哪些环境定义,但如果您感到好奇,或者您想写您自己的批处理文件,用于运行您的工具,您可以轻松找到它。找到*命令提示符链接,激活上下文菜单以查看属性,然后找到快捷方式目标(选项卡:快捷方式,控制标签:目标)。它将是一些批处理文件。找到它,在文本编辑器中打开它,看看它是做什么的。



-SA


这篇关于如何准确地解决wsdl.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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