I have already posted to the relevant ESRI forum, but since this involves 
GeoServer I thought I would check here as well just in case someone has 
successfully connected the two. The problem I am having seems to be related to 
the WMTS GetCapabilities request.

Looking at the Firebug responses when I test the app I can see that the viewer 
is able to communicate with GeoServer as the request status returns 200 OK, 
same as the ArcGIS Server tiled and dynamic services that are successfully 
displayed. The difference is that, while the Response tab for the ArcGIS Server 
requests are populated with their capabilities, the tab is empty for the 
GeoServer request.

I know the Flex Viewer request is formatted correctly because when I copy and 
paste the web address used in the request directly into the browser address bar 
a WMTS capabilities document is returned, but the browser will not display it. 
I need to save the returned capabilities document as an XML/TXT file before I 
can read it.

Is there something I need to configure on the Windows 2003 server the Flex 
Viewer apps are served from so it can recognize what GeoServer returns, or is 
there a setting in GeoServer that needs to be changed so the GetCapabilities 
document is formatted differently?

I have attached the capabilities document returned by GeoServer and the MAP 
section of the config.xml in case the solution can be found in them.

Software and servers involved:
Flash Builder 4.6
ArcGIS API for Flex 3.0
GeoServer 2.1.4 (WAR deployed in Tomcat)
Windows 2003 Server (both app and wms servers)


- Michael

<map top="40"
     initialextent="434836.578 4067712.71 667126.578 4303962.71"
     fullextent="401952.46173 4075353.66230 710721.82927 4310701.00800"
     openHandCursorVisible="false">
    <lods>
        <lod resolution="396.875793751588" scale="1500000"/>
        <lod resolution="264.583862501058" scale="1000000"/>
        <lod resolution="132.291931250529" scale="500000"/>
        <lod resolution="66.1459656252646" scale="250000"/>
        <lod resolution="33.0729828126323" scale="125000"/>
        <lod resolution="16.9333672000677" scale="64000"/>
        <lod resolution="8.46668360003387" scale="32000"/>
        <lod resolution="4.23334180001693" scale="16000"/>
    </lods>
    <basemaps>
                <layer label="Region Areas" type="tiled" visible="true"  
alpha="0.4"
               
url="http://gis.abag.ca.gov/ArcGIS/rest/services/region_RegionAreas/MapServer"/>
                <layer label="Urban Footprint" type="tiled" visible="true"  
alpha="0.8"
               
url="http://gis.abag.ca.gov/ArcGIS/rest/services/abag_UrbanFootprint/MapServer"/>
        <!-- Actual IP Address removed from this file and ip_address inserted 
as filler.-->
                <layer label="Debris Flow" type="wmts" visible="true" 
alpha="1.0" imageformat="png" 
                   url="http://ip_address:8080/geoserver/gwc/service/wmts"; 
                   servicemode="KVP" tileMatrixSetId="EPSG:26910" 
layerid="lndsldDebrisFlow"/>
    </basemaps>
    <operationallayers>
        <layer label="County Boundaries" type="dynamic" visible="true"
               
url="http://gis.abag.ca.gov/ArcGIS/rest/services/abag_CountyBoundaryOutlines/MapServer"/>
        <layer label="City Limits" type="dynamic" visible="true"
               
url="http://gis.abag.ca.gov/ArcGIS/rest/services/abag_CityLimitOutlines/MapServer"/>
        <layer label="Road Network" type="tiled" visible="true"  alpha="1"
               
url="http://gis.abag.ca.gov/ArcGIS/rest/services/abag_RoadNetwork/MapServer"/>  
          
        <layer label="Labels" type="dynamic" visible="true"  alpha="1"
               
url="http://gis.abag.ca.gov/ArcGIS/rest/services/abag_Labels/MapServer"/>
    </operationallayers>
</map>
<?xml version="1.0" encoding="UTF-8"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0";
xmlns:ows="http://www.opengis.net/ows/1.1";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:gml="http://www.opengis.net/gml"; xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd";
version="1.0.0">
<ows:ServiceIdentification>
  <ows:Title>Web Map Tile Service - GeoWebCache</ows:Title>
  <ows:ServiceType>OGC WMTS</ows:ServiceType>
  <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
</ows:ServiceIdentification>
<ows:ServiceProvider>
  <!-- Actual IP Address removed from this file and ip_address inserted as filler.-->
  <!-- Original capabilities document returned the correct IP Address.-->
  <ows:ProviderName>http://ip_address:8080/geoserver/gwc/service/wmts</ows:ProviderName>
  <ows:ProviderSite xlink:href="http://ip_address:8080/geoserver/gwc/service/wmts"; />
  <ows:ServiceContact>
    <ows:IndividualName>GeoWebCache User</ows:IndividualName>
  </ows:ServiceContact>
</ows:ServiceProvider>
<ows:OperationsMetadata>
  <ows:Operation name="GetCapabilities">
    <ows:DCP>
      <ows:HTTP>
        <ows:Get xlink:href="http://ip_address:8080/geoserver/gwc/service/wmts?";>
          <ows:Constraint name="GetEncoding">
            <ows:AllowedValues>
              <ows:Value>KVP</ows:Value>
            </ows:AllowedValues>
          </ows:Constraint>
        </ows:Get>
      </ows:HTTP>
    </ows:DCP>
  </ows:Operation>
  <ows:Operation name="GetTile">
    <ows:DCP>
      <ows:HTTP>
        <ows:Get xlink:href="http://ip_address:8080/geoserver/gwc/service/wmts?";>
          <ows:Constraint name="GetEncoding">
            <ows:AllowedValues>
              <ows:Value>KVP</ows:Value>
            </ows:AllowedValues>
          </ows:Constraint>
        </ows:Get>
      </ows:HTTP>
    </ows:DCP>
  </ows:Operation>
  <ows:Operation name="GetFeatureInfo">
    <ows:DCP>
      <ows:HTTP>
        <ows:Get xlink:href="http://ip_address:8080/geoserver/gwc/service/wmts?";>
          <ows:Constraint name="GetEncoding">
            <ows:AllowedValues>
              <ows:Value>KVP</ows:Value>
            </ows:AllowedValues>
          </ows:Constraint>
        </ows:Get>
      </ows:HTTP>
    </ows:DCP>
  </ows:Operation>
</ows:OperationsMetadata>
<Contents>
  <Layer>
    <ows:Title>lndsldDebrisFlow</ows:Title>
    <ows:Identifier>lndsldDebrisFlow</ows:Identifier>
    <Style isDefault="true">
      <ows:Identifier>_null</ows:Identifier>
    </Style>
    <Format>image/png</Format>
    <TileMatrixSetLink>      <TileMatrixSet>EPSG:26910</TileMatrixSet>
      <TileMatrixSetLimits>
        <TileMatrixLimits>
          <TileMatrix>EPSG:26910:0</TileMatrix>
          <MinTileRow>22</MinTileRow>
          <MaxTileRow>23</MaxTileRow>
          <MinTileCol>1</MinTileCol>
          <MaxTileCol>2</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>EPSG:26910:1</TileMatrix>
          <MinTileRow>32</MinTileRow>
          <MaxTileRow>34</MaxTileRow>
          <MinTileCol>1</MinTileCol>
          <MaxTileCol>3</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>EPSG:26910:2</TileMatrix>
          <MinTileRow>63</MinTileRow>
          <MaxTileRow>67</MaxTileRow>
          <MinTileCol>3</MinTileCol>
          <MaxTileCol>6</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>EPSG:26910:3</TileMatrix>
          <MinTileRow>126</MinTileRow>
          <MaxTileRow>133</MaxTileRow>
          <MinTileCol>6</MinTileCol>
          <MaxTileCol>13</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>EPSG:26910:4</TileMatrix>
          <MinTileRow>251</MinTileRow>
          <MaxTileRow>265</MaxTileRow>
          <MinTileCol>12</MinTileCol>
          <MaxTileCol>26</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>EPSG:26910:5</TileMatrix>
          <MinTileRow>491</MinTileRow>
          <MaxTileRow>518</MaxTileRow>
          <MinTileCol>24</MinTileCol>
          <MaxTileCol>51</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>EPSG:26910:6</TileMatrix>
          <MinTileRow>980</MinTileRow>
          <MaxTileRow>1034</MaxTileRow>
          <MinTileCol>48</MinTileCol>
          <MaxTileCol>102</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>null</TileMatrix>
          <MinTileRow>1959</MinTileRow>
          <MaxTileRow>2068</MaxTileRow>
          <MinTileCol>97</MinTileCol>
          <MaxTileCol>204</MaxTileCol>
        </TileMatrixLimits>
      </TileMatrixSetLimits>
    </TileMatrixSetLink>  </Layer>
</Contents>
<ServiceMetadataURL xlink:href="http://ip_address:8080/geoserver/gwc/service/wmts?REQUEST=getcapabilities&amp;VERSION=1.0.0"/>
</Capabilities>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to