<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi René-Luc,</p>
    <p>yes it fail on DescribeFeatureType.</p>
    <p>This is the repsonse of QGIS 3.28.7:</p>
    <p><schema xmlns:gml=<a class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/gml" moz-do-not-send="true">"http://www.opengis.net/gml"</a>
      targetNamespace=<a class="moz-txt-link-rfc2396E"
        href="http://www.qgis.org/gml" moz-do-not-send="true">"http://www.qgis.org/gml"</a>
      xmlns=<a class="moz-txt-link-rfc2396E"
        href="http://www.w3.org/2001/XMLSchema" moz-do-not-send="true">"http://www.w3.org/2001/XMLSchema"</a>
      xmlns:xsd=<a class="moz-txt-link-rfc2396E"
        href="http://www.w3.org/2001/XMLSchema" moz-do-not-send="true">"http://www.w3.org/2001/XMLSchema"</a>
      version="1.0" xmlns:qgs=<a class="moz-txt-link-rfc2396E"
        href="http://www.qgis.org/gml" moz-do-not-send="true">"http://www.qgis.org/gml"</a>
      xmlns:ogc=<a class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/ogc" moz-do-not-send="true">"http://www.opengis.net/ogc"</a>
      elementFormDefault="qualified"><br>
       <import schemaLocation=<a class="moz-txt-link-rfc2396E"
        href="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"
        moz-do-not-send="true">"http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"</a>
      namespace=<a class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/gml" moz-do-not-send="true">"http://www.opengis.net/gml"</a>/><br>
       <element name="buildings" substitutionGroup="gml:_Feature"
      type="qgs:buildingsType"/><br>
       <complexType name="buildingsType"><br>
        <complexContent><br>
         <extension base="gml:AbstractFeatureType"><br>
          <sequence><br>
           <element maxOccurs="1" name="geometry" minOccurs="0"
      type="gml:MultiSurfacePropertyType"/><br>
           <element name="fid" alias="ID" type="long"/><br>
           <element name="name" alias="Name" type="string"/><br>
           <element name="address" alias="Address" type="string"
      nillable="true"/><br>
           <element name="year" alias="Year of construction"
      type="long"/><br>
           <element name="photo" alias="Photo" type="string"
      nillable="true"/><br>
           <element name="link" alias="Link" type="string"
      nillable="true"/><br>
           <element name="form" alias="Form" type="string"
      nillable="true"/><br>
           <element name="high" alias="High" type="long"/><br>
           <element name="volume" alias="Volume" type="long"
      nillable="true"/><br>
           <element name="surface" alias="Surface (based on QGIS
      expression)" type="decimal" nillable="true"/><br>
           <element name="architectural_barriers"
      alias="Architectural barriers" type="string" nillable="true"/><br>
           <element name="date_barriers" alias="Date" type="date"
      nillable="true"/><br>
           <element name="safety_exits" alias="Safety exits"
      type="string" nillable="true"/><br>
           <element name="date_exits" alias="Date" type="date"
      nillable="true"/><br>
           <element name="fire_system" alias="Fire system"
      type="string" nillable="true"/><br>
           <element name="date_fire" alias="Date" type="date"
      nillable="true"/><br>
           <element name="type" alias="Type" type="string"/><br>
           <element name="zone" alias="Zone (based on QGIS
      expression)" type="string" nillable="true"/><br>
           <element name="attachment" alias="Documents to be
      attached" type="long" nillable="true"/><br>
           <element name="subtype" alias="Subtype - Dependent on the
      value of Type" type="string" nillable="true"/><br>
           <element name="user" alias="User last modification"
      type="string" nillable="true"/><br>
           <element name="description" alias="Description"
      type="string" nillable="true"/><br>
          </sequence><br>
         </extension><br>
        </complexContent><br>
       </complexType><br>
      </schema></p>
    <p>and following a DescribeFeatureType response which does not fail
      on geoservers from a Italy government  service:</p>
    <p><a class="moz-txt-link-freetext"
href="http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Alluvioni_Estensione.map&TYPENAME=ITH2018_Estensione_LPH&REQUEST=DescribeFeatureType&VERSION=1.1.0&SERVICE=WFS"
        moz-do-not-send="true">http://wms.pcn.minambiente.it/ogc?map=/ms_ogc/wfs/Alluvioni_Estensione.map&TYPENAME=ITH2018_Estensione_LPH&REQUEST=DescribeFeatureType&VERSION=1.1.0&SERVICE=WFS</a></p>
    <p><?xml version='1.0' encoding="ISO-8859-1" ?><br>
      <schema<br>
         targetNamespace=<a class="moz-txt-link-rfc2396E"
        href="http://mapserver.gis.umn.edu/mapserver"
        moz-do-not-send="true">"http://mapserver.gis.umn.edu/mapserver"</a>
      <br>
         xmlns:ms=<a class="moz-txt-link-rfc2396E"
        href="http://mapserver.gis.umn.edu/mapserver"
        moz-do-not-send="true">"http://mapserver.gis.umn.edu/mapserver"</a>
      <br>
         xmlns:ogc=<a class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/ogc" moz-do-not-send="true">"http://www.opengis.net/ogc"</a><br>
         xmlns:xsd=<a class="moz-txt-link-rfc2396E"
        href="http://www.w3.org/2001/XMLSchema" moz-do-not-send="true">"http://www.w3.org/2001/XMLSchema"</a><br>
         xmlns=<a class="moz-txt-link-rfc2396E"
        href="http://www.w3.org/2001/XMLSchema" moz-do-not-send="true">"http://www.w3.org/2001/XMLSchema"</a><br>
         xmlns:gml=<a class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/gml" moz-do-not-send="true">"http://www.opengis.net/gml"</a><br>
         elementFormDefault="qualified" version="0.1" ><br>
      <br>
        <import namespace=<a class="moz-txt-link-rfc2396E"
        href="http://www.opengis.net/gml" moz-do-not-send="true">"http://www.opengis.net/gml"</a><br>
                schemaLocation=<a class="moz-txt-link-rfc2396E"
        href="http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"
        moz-do-not-send="true">"http://schemas.opengis.net/gml/3.1.1/base/gml.xsd"</a>
      /><br>
      <br>
        <element name="ITH2018_Estensione_LPH" <br>
                 type="ms:ITH2018_Estensione_LPHType" <br>
                 substitutionGroup="gml:_Feature" /><br>
      <br>
        <complexType name="ITH2018_Estensione_LPHType"><br>
          <complexContent><br>
            <extension base="gml:AbstractFeatureType"><br>
              <sequence><br>
                <element name="boundary"
      type="gml:SurfacePropertyType" minOccurs="0"
      maxOccurs="unbounded"/><br>
                <element name="id" type="string"/><br>
                <element name="rbdname" type="string"/><br>
                <element name="uomcode" type="string"/><br>
                <element name="apsfrcode" type="string"/><br>
                <element name="category" type="string"/><br>
                <element name="eu_cd_hp" type="string"/><br>
                <element name="source" type="string"/><br>
                <element name="character" type="string"/><br>
                <element name="mechanism" type="string"/><br>
                <element name="frequency" type="string"/><br>
                <element name="namespace" type="string"/><br>
                <element name="beginlife" type="string"/><br>
                <element name="detmetod" type="string"/><br>
              </sequence><br>
            </extension><br>
          </complexContent><br>
        </complexType><br>
      <br>
      </schema></p>
    <p><br>
    </p>
    <p>I can't see a substantial difference :(</p>
    <p>W<br>
    </p>
    <div class="moz-cite-prefix">Il 31/05/23 15:28, René-Luc Dhont via
      QGIS-Developer ha scritto:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ea9005ef-10bb-7a2f-af25-7fe8a7304b18@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi Walter,<br>
      <br>
      You have to check the result of DescribeFeatureType WFS Request.<br>
      This request has to provide the XSD to validate the GML.<br>
      <br>
      Regards,<br>
      René-Luc<br>
      <br>
      <div class="moz-cite-prefix">Le 31/05/2023 à 14:59, Walter
        Lorenzetti via QGIS-Developer a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:8e77c290-9600-5c17-5b47-02d52dd1f67c@gis3w.it">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <p>Hi,</p>
        <p>when I try to add a WFS service layer to a GeoServer instance
          I get an exception like this:</p>
        <p>```</p>
        <p>...</p>
        <p>Caused by: java.lang.RuntimeException:
          org.geotools.data.DataSourceException: No
          XSDElementDeclaration found for {<a
            class="moz-txt-link-freetext"
            href="http://www.opengis.net/wfs" moz-do-not-send="true">http://www.opengis.net/wfs</a>}Particelle_terreni_e_fabbricati<br>
              at
org.geotools.data.store.ContentFeatureSource.getAbsoluteSchema(ContentFeatureSource.java:329)<br>
              at
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:296)<br>
              at
org.geotools.data.store.ContentFeatureSource.getSchema(ContentFeatureSource.java:105)<br>
              at
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:342)<br>
              at
org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:325)<br>
              at
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:409)<br>
        </p>
        <p>...<br>
        </p>
        <p>```</p>
        <p>Any idea about this issue? It seams a XML error validation..</p>
        <p>Thanks in advance.</p>
        <p>W<br>
        </p>
        <p><br>
        </p>
        <div class="moz-signature">-- <br>
          <p style="font-size:12px;"> Walter Lorenzetti phD<br>
            email: <a href="mailto:lorenzetti@gis3w.it"
              class="moz-txt-link-freetext" moz-do-not-send="true">lorenzetti@gis3w.it</a><br>
            site: <a href="https://gis3w.it" moz-do-not-send="true">gis3w.it</a><br>
            twitter: w_lorenzetti<br>
            Tel/Cell: (+39) 347-6597931<br>
            Viale Verdi 24 - 51016 Montecatini Terme (PT)<br>
          </p>
        </div>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:QGIS-Developer@lists.osgeo.org" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
      </blockquote>
      <br>
      <lt-container></lt-container> <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:QGIS-Developer@lists.osgeo.org" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <p style="font-size:12px;"> Walter Lorenzetti phD<br>
        email: <a href="mailto:lorenzetti@gis3w.it"
          class="moz-txt-link-freetext" moz-do-not-send="true">lorenzetti@gis3w.it</a><br>
        site: <a href="https://gis3w.it" moz-do-not-send="true">gis3w.it</a><br>
        twitter: w_lorenzetti<br>
        Tel/Cell: (+39) 347-6597931<br>
        Viale Verdi 24 - 51016 Montecatini Terme (PT)<br>
      </p>
    </div>
  </body>
</html>