I come across an issue with service.
So basically I have a webproject where i would like to add some external reference to a service, but when trying to add it, or when i try to discover (by clicking GO) i get an error:
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.
Basically i dont know what should I do know, how can i still access the service, what is the best way, and why i can't reference the service in VS?
The reference is something like this: http://webadress:port/wsdl/authentication-service.wsdl
(it is external service which is not mine or anything)
When I open this url in browser i do get a valid xml to see ....
Any idea is always welcome
I used to have similar problem when adding external api references and sometimes it worked generating proxy classes using wsdl tool . You could give it a try
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.