[CITE-Forum] Issues with namespaces in CTL requests

Richard Martell rmartell at galdosinc.com
Tue May 13 18:27:47 EDT 2014

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.


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">
            <xsl:value-of select="$csw.GetRecords.soap.url"/>
          <header name="action">urn:unused</header>
          <header name="SOAPAction">urn:unused</header>
          <header name="Content-Type">application/soap+xml</header>
            <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
              <soap:Header />
                   outputFormat="application/xml" outputSchema="http://www.isotc211.org/2005/gmd"
                   resultType="results" service="CSW" version="2.0.2" startPosition="1"
                  <csw:Query typeNames="gmd:MD_Metadata">

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20140513/5857f5cc/attachment.html>

More information about the CITE-Forum mailing list