[WFS]StoredQuery with multiple Query

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[WFS]StoredQuery with multiple Query

RudyWI
Hi,

I can't create the following StoredQuery :

<wfs:CreateStoredQuery service="WFS" version="2.0.0"
    xmlns:wfs="http://www.opengis.net/wfs/2.0"
    xmlns:fes="http://www.opengis.net/fes/2.0"
    xmlns:myNs="http://myNs/">
    <wfs:StoredQueryDefinition id="mySQ">
        <wfs:Title> </wfs:Title>
        <wfs:Abstract> </wfs:Abstract>
        <wfs:QueryExpressionText returnFeatureTypes="myNs:one myNs:two" language="urn:ogc:def:queryLanguage:OGC-WFS::WFS_QueryExpression">
            <wfs:Query typeNames="myNs:one" />
            <wfs:Query typeNames="myNs:two" />
        </wfs:QueryExpressionText>
    </wfs:StoredQueryDefinition>
</wfs:CreateStoredQuery>

The following error occurs :

<ows:ExceptionReport version="2.0.0"
  xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://127.0.0.1:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd"
  xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ows:Exception exceptionCode="OperationProcessingFailed" locator="CreateStoredQuery">
    <ows:ExceptionText>Error validating stored query
org.xml.sax.SAXParseException;...; The markup in the document following the root element must be well-formed.
The markup in the document following the root element must be well-formed.</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

However, if I try to create a StoredQuery with only one "<wfs:Query>" element, it works.

So, how to create a StoredQuery with multiple "<wfs:Query>" elements ?

Kind regards,

RudyWI

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: [WFS]StoredQuery with multiple Query

lucvanlinden
Hi List

We are faced with the same issue on 2.7.1.1.

Was something done with this thread 3 years ago?
Any way to resolve this.

tx

Luc

Reply | Threaded
Open this post in threaded view
|

Re: [WFS]StoredQuery with multiple Query

geowolf
On Fri, Aug 28, 2015 at 1:18 PM, lucvanlinden <[hidden email]> wrote:
Hi List

We are faced with the same issue on 2.7.1.1.

Was something done with this thread 3 years ago?

I don't think so
 
Any way to resolve this.

Make a pull request with a fix and tests ;-)

Cheers
Andrea

--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime 
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

 

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


-------------------------------------------------------

------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users