我遇到了服务问题。
所以基本上我有一个网络项目,我想在其中添加一些对服务的外部引用,但是当我尝试添加它时,或者当我尝试发现(通过单击 GO)时,我得到一个错误:
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://webadress:port/wsdl/authentication-service.wsdl'.
The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="authentication-service"
targetNamespace="http://www.alfresco.org/ws/service/authentication/1.0"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:auth="http://www.alfresco.org/ws/service/authentication/1.0"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- ************************************** -->
<!-- Copyright Alfresco Software, Inc. 2005 -->
<!-- ************************************** -->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://www.alfresco.org/ws/service/authentication/1.0" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="startSession">
<complexType>
<sequence>
<element name="fa" type="xsd:string"/>
<element name="fp" type="xsd:string"/>
'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
基本上我不知道我应该知道什么,我怎样才能访问该服务,最好的方法是什么,为什么我不能在 VS 中引用该服务?
参考是这样的:(http://webadress:port/wsdl/authentication-service.wsdl
它是外部服务,不是我的或任何东西)
当我在浏览器中打开这个 url 时,我确实得到了一个有效的 xml 来查看....
任何想法总是受欢迎的