简体   繁体   English

C# API 带 XSD/WSDL

[英]C# API with XSD/WSDL

I'm used to adding a web reference in VS and building an API from there.我习惯于在 VS 中添加 web 引用并从那里构建 API。

I was handed on WSDL document and two XSD documents to build an API from.我收到了 WSDL 文档和两个 XSD 文档来构建 API。 How do I go about creating the API?我如何 go 创建 API?

Thanks in advance.提前致谢。

Try reading about the Wsdl.exe tool, which should build the C# classes for you from the Wsdl definition file.尝试阅读有关 Wsdl.exe 工具的信息,它应该从 Wsdl 定义文件中为您构建 C# 类。

Try something like this from the command line:从命令行尝试这样的事情:

svcutil your.wsdl (or svcutil your.wsdl /l:vb if you want Visual Basic)

I got this from basically a duplicate question here .我基本上是从这里的一个重复问题中得到的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM