Я пытаюсь запустить следующую командную строку, но получаю ошибку. Вы можете попробовать запустить команду самостоятельно, чтобы проверить ее, но я поместил ошибку, которую я получаю ниже.
svcutil /noConfig /language:C# /out:ICatalog.cs /n:*,ogc.csw.ebrim http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-ebrim-interface.wsdl
Я попытался загрузить wsdl и изменить его несколькими способами, чтобы заставить его работать. Но я не смог выяснить, что нужно изменить, чтобы заставить его работать.
svcutil /noConfig /language:C# /out:ICatalog.cs /n:*,ogc.csw.ebrim http://localhost/temp/csw-ebrim-interface.wsdl
Кто-нибудь знает, что я могу изменить, чтобы получить это для генерации кода?
Любая помощь будет принята с благодарностью.
Я получаю ошибку:
Error: Cannot obtain Metadata from http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-ebrim-interface.wsdl
If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata pu
blishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.mic
rosoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-ebrim-interface.wsdl
Metadata contains a reference that cannot be resolved: 'http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-e
brim-interface.wsdl'.
The content type text/xml of the response message does not match the content type of the binding (application/soap+xml; charse
t=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"?>
<wsd:description
targetNamespace="http://www.opengis.net/cat/wrs/1.0/wsdl"
xmlns:tns="http://www.opengis.net/cat/wrs/1.0/wsdl"
xmlns:wrs="http://www.opengis.net/cat/wrs/1.0"
xmlns:iri="http://www.opengis.net/cat/wrs/1.0/iri"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ows="http://www.opengis.net/ows"
xmlns:wsd="http://www.w3.org/ns/wsdl"
xmlns:wsdx="http://www.w3.org/ns/wsdl-extensions"
xmlns:wsoap="http://www.w3.org/ns/wsdl/soap"
xmlns:whttp="http://www.w3.org/ns/wsdl/http"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://www.w3.org/ns/wsdl http://www.w3.org/2007/06/wsdl/wsdl20.xsd
http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd">
<wsd:documentation>
W3C WSDL interface descriptions for the CSW-ebRIM 1.0 catalogue service. This
document shall be imported by all instance-specific service descriptions.
</wsd:documentation>
<w'.
HTTP GET Error
URI: http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-ebrim-interface.wsdl
The document at the url http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-ebrim-interface.wsdl was not reco
gnized 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 <schema> and its namespace should be 'http://www.w3.
org/2001/XMLSchema'.'.
- Report from 'DISCO Document' is 'Discovery document at the URL http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/
csw-ebrim-interface.wsdl could not be found.'.
- The document format is not recognized.
- Report from 'WSDL Document' is 'There is an error in XML document (2, 2).'.
- <description xmlns='http://www.w3.org/ns/wsdl'> was not expected.