Visual C++ 添加 WSDL 文件 [英] Visual C++ adding WSDL file
问题描述
据我所知,.wsdl 文件由 xml 规范组成.这种定义代码的抽象方式然后通过某种方式转化为可用的代码.
From my understanding a .wsdl file consists of an xml specification. This abstract way of defining code is then converted into usable code via some means.
我有一个在 Visual C++ express 中创建的 C++ 程序.我正在尝试使用 .wsdl 文件,但不确定如何继续.我假设我可以以某种方式添加 wsdl 的 url 并自动生成代码.
I have a C++ program that I am creating in Visual C++ express. I am trying to use a .wsdl file but am unsure about how to proceed. I am presuming that somehow I can add the url of the wsdl and have the code generated automatically.
我看过类似的问题,似乎表明有一种方法可以添加网络引用
,但我已经查看并在 Visual C++ 2010 Express 上找不到此选项.
I've seen similar questions which seem to suggest that there is a way to add web reference
but I have looked and cannot find this option on Visual C++ 2010 Express.
推荐答案
我不确定 Visual Studio 是否提供这样的选项,但我认为
您需要一个像 Apache Axis's 这样的库WSDL2WS 工具,它将为使用 wsdl 作为输入.
I am not sure if visual studio provides such an option, having said that I think
You need a library like Apache Axis's WSDL2WS tool which will generate stubs for you by using the wsdl as input.
这篇关于Visual C++ 添加 WSDL 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!