?wsdl php web服务显示没有发现信息无法添加引用

时间:2012-09-05 05:40:56

标签: c# php web-services

我收到了这个错误。这就是为什么我不能添加对我的项目的引用。

2 个答案:

答案 0 :(得分:0)

您需要为WebService提供有效的WSDL。 (WSDL Documentation

最后尝试使用?wsdl访问WebService的URL。 例如:

http://my.url.com/webServiceFile.aspx变为http://my.url.com/webServiceFile.aspx?wsdl

您应该看到this之类的内容。如果收到错误消息,那么您尝试访问的WebService无效。

编辑:我刚刚意识到您的屏幕截图中的网址字段是空白的,因为您没有输入任何内容。您需要知道WebService的URL,然后将其插入该字段,确保最后有?wsdl

它必须是:

http://<your domain>.com/<WebService file>.aspx?wsdl

答案 1 :(得分:0)

尝试添加:

header("Content-Type: text/xml");
在打印wsdl之前

相关问题