[CITE-Forum] Issues with namespaces in CTL requests

Michael Schulz mandschulz at googlemail.com
Fri May 2 07:21:27 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengeospatial.org/pipermail/cite-forum/attachments/20140502/e62e8194/attachment.html>


More information about the CITE-Forum mailing list