BROprogramma / SGM

Repository voor het ontwikkelen van de BRO gegevenscatalogus Bodemkaart (SGM).
0 stars 2 forks source link

aanpassing XSD ivm http issues #12

Open yke opened 3 years ago

yke commented 3 years ago

Waar

XSD## Samenvatting [Korte tekst van de melding. Bijvoorbeeld: 'De tekst is hier onduidelijk.']

Beschrijving

Gebruik van http leidt tot problemen bij het genereren van JAVA code.


c:\>curl -v GET "http://standards.iso.org/iso/19115/-3/cit/1.0/cit.xsd"
* Rebuilt URL to: GET/
* Could not resolve host: GET
* Closing connection 0
curl: (6) Could not resolve host: GET
*   Trying 138.81.131.111...
* TCP_NODELAY set
* Connected to standards.iso.org (138.81.131.111) port 80 (#1)
> GET /iso/19115/-3/cit/1.0/cit.xsd HTTP/1.1
> Host: standards.iso.org
> User-Agent: curl/7.55.1
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 302 Found
< Location: https://standards.iso.org/iso/19115/-3/cit/1.0/cit.xsd
< Server: BigIP
* HTTP/1.0 connection set to keep alive!
< Connection: Keep-Alive
< Content-Length: 0
<
* Connection #1 to host standards.iso.org left intact
* ```
Je ziet http 302 en met https gaat het wel goed.

## Oplossingsrichting
Vervang twee regels door

   <xs:import namespace="http://standards.iso.org/iso/19115/-3/cit/1.0" schemaLocation="http**s**://standards.iso.org/iso/19115/-3/cit/1.0/cit.xsd"/>
   <xs:import namespace="http://inspire.ec.europa.eu/schemas/so/4.0" schemaLocation="http**s**://inspire.ec.europa.eu/schemas/so/4.0/Soil.xsd"/>