<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Chris,<div><br></div><div>thanks for the feedback, glad that it worked. The code I pointed you at has a TODO which says push to GeoExt ;-)</div><div><br></div><div>Pull requests are always welcome of course.</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>--&nbsp;<br>Bart van den Eijnden<br>OpenGeo -&nbsp;<a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On Oct 24, 2012, at 11:44 AM, Christopher Eykamp &lt;<a href="mailto:christopher.eykamp@tudor.lu">christopher.eykamp@tudor.lu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Bart,<br>
    <br>
    Thank you -- this code does exactly what I was looking for.&nbsp; <br>
    <br>
    I do find it strange that GeoExt does not do this by default, as it
    appears to have the parsing code already built in, and the amount of
    extra processing involved would be minimal.<br>
    <br>
    In any case, my immediate problem is solved, so thank you for your
    help!<br>
    <br>
    Chris<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/23/2012 11:46 AM, Bart van den
      Eijnden wrote:<br>
    </div>
    <blockquote cite="mid:D771737C-C87D-4C97-85AB-0EAE0DD91AAC@opengeo.org" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Hi,
      <div><br>
      </div>
      <div>the OpenLayers WFS GetCapabilities parser provides this info,
        but the GeoExt reader is only interested in the feature types,
        not the service metadata.</div>
      <div><br>
      </div>
      <div>You can do a similar thing as what is done here:</div>
      <div><br>
      </div>
      <div><a moz-do-not-send="true" href="https://github.com/opengeo/gxp/blob/master/src/script/plugins/WMSSource.js#L37">https://github.com/opengeo/gxp/blob/master/src/script/plugins/WMSSource.js#L37</a></div>
      <div><br>
      </div>
      <div>Best regards,</div>
      <div>Bart</div>
      <div><br>
        <div>
          <span class="Apple-style-span" style="border-collapse:
            separate; border-spacing: 0px; ">
            <div>--&nbsp;<br>
              Bart van den Eijnden<br>
              OpenGeo -&nbsp;<a moz-do-not-send="true" href="http://opengeo.org/">http://opengeo.org</a><br>
              Expert service straight from the developers.</div>
            <div><br>
            </div>
          </span><br class="Apple-interchange-newline">
        </div>
        <br>
        <div>
          <div>On Oct 23, 2012, at 11:34 AM, Christopher Eykamp &lt;<a moz-do-not-send="true" href="mailto:christopher.eykamp@tudor.lu">christopher.eykamp@tudor.lu</a>&gt;
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <meta http-equiv="content-type" content="text/html;
              charset=ISO-8859-1">
            <div bgcolor="#FFFFFF" text="#000000">
              <meta http-equiv="content-type" content="text/html;
                charset=ISO-8859-1">
              Hello!<br>
              <br>
              This is probably a very simple question but I just can't
              seem to figure it out.<br>
              <br>
              I am writing a Javascript app to retrieve layer
              information from a WFS server using a GetCapabilities
              request using GeoExt. GetCapabilities returns information
              about the WFS server -- the server's name, who runs it,
              etc., in addition to information on the data layers it has
              on offer.<br>
              <br>
              My basic code looks like this:<br>
              <br>
              =====<br>
              var store = new GeoExt.data.WFSCapabilitiesStore({ url:
              serverURL });<br>
              <br>
              store.on('load', successFunction);<br>
              store.on('exception', failureFunction);<br>
              store.load();<br>
              =====<br>
              <br>
              This works as expected, and when the loading completes,
              successFunction is called.<br>
              <br>
              successFunction looks like this:<br>
              <br>
              =====<br>
              successFunction = function(dataProxy, records, options) {
              <br>
              &nbsp;&nbsp; doSomeStuff();<br>
              }<br>
              =====<br>
              <br>
              dataProxy is a Ext.data.DataProxy object, records is a
              list of records, one for each layer on the WFS server, and
              options is empty.<br>
              <br>
              And here is where I'm stuck: In this function, I can get
              access to all the layer information regarding data offered
              by the server. But I also want to extract the server
              information that is contained in the XML fetched during
              the store.load() (see below). I can't figure out how to
              get it out of the dataProxy object, where I'm sure it must
              be squirreled away.<br>
              <br>
              Any ideas?<br>
              <br>
              The fields I want are contained in this snippet:<br>
              <br>
              =====<br>
              &lt;ows:ServiceIdentification&gt;<br>
              &nbsp; &lt;ows:Title&gt;G_WIS_testIvago&lt;/ows:Title&gt;<br>
              &nbsp; &lt;ows:Abstract/&gt;<br>
              &nbsp; &lt;ows:Keywords&gt;<br>
              &nbsp;&nbsp;&nbsp;&nbsp; &lt;ows:Keyword/&gt;<br>
              &nbsp; &lt;/ows:Keywords&gt;<br>
              &nbsp; &lt;ows:ServiceType&gt;WFS&lt;/ows:ServiceType&gt;<br>
              &nbsp;
              &lt;ows:ServiceTypeVersion&gt;1.1.0&lt;/ows:ServiceTypeVersion&gt;<br>
              &nbsp; &lt;ows:Fees/&gt;<br>
              &nbsp; &lt;ows:AccessConstraints/&gt;<br>
              =====<br>
              <br>
              Thank you!<br>
              <br>
              Chris Eykamp<br>
            </div>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true" href="mailto:Users@geoext.org">Users@geoext.org</a><br>
            <a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div></body></html>