我继承了一个NUnit测试项目,代码的SOAP URL没有?wsdl因此URL以../soap.svc 。 验证也丢失了?wsdl所以URL以../WebServices/Authentication/Service.asmx
在建立连接时默认添加?wsdl ?
I have inherited a NUnit test project and the code has the SOAP URL without ?wsdl so the URL ends with ../soap.svc. Authenticate is also missing ?wsdl so the URL ends with ../WebServices/Authentication/Service.asmx
Is the ?wsdl added by default when the connection is being made?
最满意答案
当您想要获取服务的实际WSDL定义文件时,将使用wsdl参数,但不是在您确实要对服务进行服务调用时。 例如:
// GET or POST requests to call service functions. http://localhost/Service/Service.asmx // GET the WSDL XML file for this service http://localhost/Service/Service.asmx?wsdl一般情况下,如果您希望与服务本身进行交互,则可能不应该在URL的末尾使用?wsdl 。
The wsdl parameter is used when you want to get the actual WSDL definition file for the service, but not when you actually want to make service calls to the service. e.g.:
// GET or POST requests to call service functions. http://localhost/Service/Service.asmx // GET the WSDL XML file for this service http://localhost/Service/Service.asmx?wsdlIn general you probably should not have ?wsdl on the end of the URL if you are expecting to interact with the service itself.
更多推荐
发布评论