SERVICEINFO | Examples |
<SERVICEINFO > No Attributes When parent element is RESPONSE for an ArcMap Image Service and the dataframe attribute is not used in GET_SERVICE_INFO: (m) <LAYERINFO... /> <ENVIRONMENT... /> <LAYOUTINFO... /> <PROPERTIES... /> When parent element is RESPONSE for an ArcMap Image Service and the dataframe attribute is used in GET_SERVICE_INFO: (m) <DATAFRAMEINFO... /> <ENVIRONMENT... /> <LAYOUTINFO... /> When parent element is RESPONSE for an Image or Feature Service: (m) <LAYERINFO... /> <ENVIRONMENT... /> <PROPERTIES... /> </SERVICEINFO > | |
Bold: Attribute or child element is
required. (m): Child element can be used multiple times. |
Example 1: When all GET_SERVICE_INFO attributes are set to true. The Countries layer includes extensions. An acetate layer is also included. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="83.5960388183594" /> <FIELD name="AREA" type="8" size="12" precision="3" /> <FIELD name="NAME" type="12" size="40" precision="0" /> <FIELD name="ABBREVNAME" type="12" size="12" precision="0" /> <FIELD name="FIPS_CODE" type="12" size="2" precision="0" /> <FIELD name="WB_CNTRY" type="12" size="3" precision="0" /> <FIELD name="#SHAPE#" type="-98" size="0" precision="0" /> <FIELD name="#ID#" type="-99" size="16" precision="0" /> </FCLASS> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL filltransparency="0.0" boundarywidth="2" /> </SIMPLERENDERER> <EXTENSION type="extract"> <EXTRACTPARAMS clip="true"> <OUTPUTFILE file="world"> <OUTPUTFIELD name="NAME" alias="Country"/> </OUTPUTFILE> </EXTRACTPARAMS> </EXTENSION> <EXTENSION type="Geocode" > <GCSTYLE name="SingleField" /> </EXTENSION> <EXTENSION type="StoredQuery"> <STOREDQUERIES> <STOREDQUERY name="Country"> <QUERY subfields="#SHAPE# AREA NAME ABBREVNAME FIPS_CODE WB_CNTRY" where="( NAME = [%var%] )" > </QUERY> <SQVAR name="[%var%]" position="0"> <FIELD name="NAME" type="12" precision="0" size="40" /> </SQVAR> </STOREDQUERY> </STOREDQUERIES> </EXTENSION> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |
Example 2: When layer rendering is included and RASTERFILLSYMBOL is restricted. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <CAPABILITIES forbidden="GET_EXTRACT"/> <SCREEN dpi="120"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-141.003005981445" miny="29.9125167103556" maxx="-52.6202812194824" maxy="83.1083221435546" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="featureclass" visible="true" name="Provinces" id="Provinces"> <FCLASS type="polygon"> </FCLASS> <SIMPLERENDERER> <RASTERFILLSYMBOL url="http://mymachine.domain.com/website/color.gif" transparency="0.5" overlap="true" /> </SIMPLERENDERER> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
Example 3: When request is routed to the Geocode Server. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> </ENVIRONMENT> <LAYERINFO name="Streets" id="4" > <EXTENSION type="geocode"> <GCSTYLE name="USAddressZ" > <GCINPUT id="STREET" type="text" label="Street" width="10" description="street number, street name and type" /> <GCINPUT id="ZONE" type="text" label="Zone" width="5" description="zone information" /> <GCINPUT id="CROSSSTREET" type="text" label="Cross street" width="10" description="cross street name and type" /> </GCSTYLE> </EXTENSION> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
Example 4: When request is sent to an ArcMap Image Service and DATAFRAMEINFO is not included | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US"/> <UIFONT name="Arial" color="0,0,0" size="12" style="regular"/> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-178.637433658708" miny="-149.932588181915" maxx="180.202305702247" maxy="148.932531819555" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="image" name="Background" id="1" visible="true"> <ENVELOPE minx="-180.10415" miny="-89.8896767396583" maxx="179.900453479317" maxy="90.112625" /> </LAYERINFO> <LAYERINFO type="featureclass" name="Countries" id="0" visible="true"> <FCLASS type="polygon"> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="83.5960388183594" /> <FIELD name="#ID#" type="-99" size="4" precision="0" /> <FIELD name="#SHAPE#" type="-98" size="0" precision="0" /> <FIELD name="AREA" type="8" size="12" precision="11" /> <FIELD name="NAME" type="12" size="40" precision="0" /> <FIELD name="ABBREVNAME" type="12" size="12" precision="0" /> <FIELD name="FIPS_CODE" type="12" size="2" precision="0" /> <FIELD name="WB_CNTRY" type="12" size="3" precision="0" /> </FCLASS> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
Example 5: When request includes the attribute dataframe for ArcMap layouts. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US"/> <UIFONT name="Arial" color="0,0,0" size="12" style="regular"/> <SEPARATORS cs=" " ts=";"/><SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <DATAFRAMEINFO name="Layers"> <PROPERTIES> <FEATURECOORDSYS id="4269"/> <FILTERCOORDSYS id="4269"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-127.714285386824" miny="-6.58527935381" maxx="-63.9877554315853" maxy="81.1449102179015" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="featureclass" name="states" id="2" visible="true"> <FCLASS type="polygon"></FCLASS> </LAYERINFO> <LAYERINFO type="featureclass" name="rivers" id="1" visible="true"> <FCLASS type="line"></FCLASS> </LAYERINFO> <LAYERINFO type="featureclass" name="cities" id="0" visible="true"> <FCLASS type="point"></FCLASS> </LAYERINFO> </DATAFRAMEINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |