[CITE-Forum] Issues with namespaces in CTL requests

Richard Martell rmartell at galdosinc.com
Thu May 22 15:41:54 EDT 2014


Do you observe the same issue with the current (4.0.5) teamengine release?

If so, then the source of the problem is likely lurking in the teamengine code base.
In the teamengine-core module it appears that the TECore class has a lot of responsibilities.
As far as I can tell the soap_request method is where you might want to start looking to determine if namespace bindings are being discarded for some reason.


From: Michael Schulz [mailto:mandschulz at googlemail.com]
Sent: Tuesday, 20 May, 2014 05:23
To: Richard Martell
Cc: cite-forum at lists.opengeospatial.org
Subject: Re: [CITE-Forum] Issues with namespaces in CTL requests

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<mailto: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.


From: CITE-Forum [mailto:cite-forum-bounces at lists.opengeospatial.org<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<mailto: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

Michael Schulz

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

More information about the CITE-Forum mailing list