.NET Web 服务:.asmx?WSDL 与 .wsdl
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3098410/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
.NET Web Service: .asmx?WSDL vs .wsdl
提问by Aximili
This is probably a stupid question. I don't know anything about Web Service but I have to work on this existing web service.
这大概是个愚蠢的问题。我对 Web 服务一无所知,但我必须处理这个现有的 Web 服务。
What is the difference between club.asmx?wsdl vs club.wsdl ?
club.asmx?wsdl 和 club.wsdl 有什么区别?
I noticed they are similar, but club.wsdl has more stuff in it.
我注意到它们很相似,但是 club.wsdl 中有更多的东西。
Aren't they generated automatically from the .cs code?
它们不是从 .cs 代码自动生成的吗?
回答by John Saunders
club.asmx?wsdl is a request to the service to generate and return a WSDL.
club.asmx?wsdl 是对服务的生成和返回 WSDL 的请求。
club.wsdl is just a reference to a file on your web server. Presumably it contains the WSDL that is meant to be exposed to customers.
club.wsdl 只是对 Web 服务器上文件的引用。据推测,它包含旨在向客户公开的 WSDL。

