[CITE-Forum] Issues with namespaces in CTL requests

Michael Schulz mandschulz at googlemail.com
Tue May 20 08:22:43 EDT 2014


Dear Richard,

sorry for the delay, but as you assumed, the gmd namespace is also already
declared on the ctl:package element.

Cheers, Michael


2014-05-14 0:27 GMT+02:00 Richard Martell <rmartell at galdosinc.com>:

>  Hi Michael,
>
>
>
> If you haven't already done so you might also try declaring the 'gmd'
> namespace binding on the root (ctl:package) element in the script.
>
>
>
> --
>
> Richard
>
>
>
>
>
> *From:* CITE-Forum [mailto:cite-forum-bounces at lists.opengeospatial.org] *On
> Behalf Of *Michael Schulz
> *Sent:* Friday, 02 May, 2014 04:21
> *To:* cite-forum at lists.opengeospatial.org
> *Subject:* [CITE-Forum] Issues with namespaces in CTL requests
>
>
>
> Dear list,
>
>
>
> I have some problems regarding a CTL test script, that was developed to
> test CSW AP-ISO conformity. One test issues a getrecords request in order
> to get back two gmd:MD_Metadata records. The part of the CTL script looks
> like this:
>
>
>
>       <xsl:variable name="response">
>
>         <request>
>
>           <url>
>
>             <xsl:value-of select="$csw.GetRecords.soap.url"/>
>
>           </url>
>
>           <method>POST</method>
>
>           <header name="action">urn:unused</header>
>
>           <header name="SOAPAction">urn:unused</header>
>
>           <header name="Content-Type">application/soap+xml</header>
>
>           <body>
>
>             <soap:Envelope xmlns:soap="
> http://www.w3.org/2003/05/soap-envelope">
>
>               <soap:Header />
>
>               <soap:Body>
>
>                 <GetRecords
>
>                    xmlns="http://www.opengis.net/cat/csw/2.0.2"
>
>                    xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
>
>                    xmlns:gmd="http://www.isotc211.org/2005/gmd"
>
>
>                    outputFormat="application/xml" outputSchema="
> http://www.isotc211.org/2005/gmd"
>
>                    resultType="results" service="CSW" version="2.0.2"
> startPosition="1"
>
>                    maxRecords="2">
>
>                   <csw:Query typeNames="gmd:MD_Metadata">
>
>                     <csw:ElementSetName>summary</csw:ElementSetName>
>
>                   </csw:Query>
>
>                 </GetRecords>
>
>               </soap:Body>
>
>             </soap:Envelope>
>
>           </body>
>
>         </request>
>
>       </xsl:variable>
>
>
>
> As you can see we define the gmd Namespace. However when an actual test
> session is created for this test, it seems the soap message is modified
> either by a XSL transformation or another XML (validation?) mechanism and
> the result is that in the actual request being sent out (when a test
> session is executed), this defined gmd namespace is removed. The problem
> is, that the remote CSW (pycsw) complains about the undeclared namespace.
>
>
>
> One thing to add, is that this is with older teamengine version. So I'm
> not exactly looking for a solution to it, rather a pointer to where this
> could happen in the code.
>
>
>
> Cheers, Michael
>
>
>
> --
>
> -----------------------------------------------------------
> Michael Schulz
>
>
>



-- 
-----------------------------------------------------------
Michael Schulz

Bahnhofstr. 62
D-63477 Maintal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20140520/c31ceae1/attachment.html>


More information about the CITE-Forum mailing list