1

Я получаю эту ошибку, когда я пытаюсь включить ссылку сервиса WSDL: LinkWSDL: ошибка Добавление ссылки на службу C# на VS 2010

The document at the url http://www.comercioweb.com.br/ws/servidor.wsdl was not recognized as a known document type. The error message from each known type may help you fix the problem: - Report from 'XML Schema' is 'The root element of a W3C XML Schema should be and its namespace should be ' http://www.w3.org/2001/XMLSchema '.'. - Report from 'DISCO Document' is 'Discovery document at the URL http://www.comercioweb.com.br/ws/servidor.wsdl could not be found.'. - The document format is not recognized. - Report from 'WSDL Document' is 'There is an error in XML document (8, 33).'. - Namespace prefix 's' is not defined. Metadata contains a reference that cannot be resolved: ' http://www.comercioweb.com.br/ws/servidor.wsdl '. The remote server returned an unexpected response: (417) Expectation failed. The remote server returned an error: (417) Expectation failed. If the service is defined in the current solution, try building the solution and adding the service reference again.

Кто-нибудь знает, почему это ошибка? Delphi 7 импортирует его очень хорошо ... и www.wsdl-analyzer.com говорят о нулевых ошибках на wsdl.

ответ

0

WSDL (xml) был сгенерирован некорректно ... По какой-то причине Delphi не обнаруживает его ... но во время выполнения он дает мне ошибку ... на C#/visual studio ошибка возникла, когда я создаю службу Справка.