SERVICE

Used in

Application Server RESPONSE  Application Server Administration  

Parent elements

SERVICES 

Syntax

<SERVICEAttribute Description Table

     When parent element is SERVICES in ADMINCMD while adding a Feature Service:
     (r)axl="string"
     (r)name="string"
     (r)type="add"
     (r)vsname="string"

     When parent element is SERVICES in ADMINCMD while adding an Image or ArcMap Image Service:
     (r)axl="string"
     (r)cleanup="integer"
     (r)imagememory="1-NNN"
     (r)imgloc="string"
     (r)imgurl="string"
     (r)name="string"
     (r)type="add"
     (r)vsname="string"
     imgtype="JPG | PNG8 | PNG | GIF" [JPG]

     When parent element is SERVICES in ADMINCMD while removing, starting, or stopping an ArcIMS service:
     (r)name="string"
     (r)type="remove | start | stop"

     When parent element is SERVICES in Application Server RESPONSE:
     (r)access="PUBLIC | PRIVATE"
     (r)name="string"
     (r)servicegroup="string"
     (r)status="ENABLED | DISABLED"
     (r)type="string"
     (r)version="ArcMap | [empty]"
>


     When parent element is SERVICES in ADMINCMD:
          No Child Elements

     When parent element is SERVICES in Application Server RESPONSE:
     (r)<CLEANUP... />
     (r)<ENVIRONMENT... />

</SERVICE >
(r): Attribute or child element is required.

Description


Notes


Attribute Descriptions for SERVICE


When parent element is SERVICES in ADMINCMD while adding a Feature Service:
AttributeUsage
axlFull pathname to map configuration file.
nameName of ArcIMS service. Service names are case sensitive.
typeType of action on service.
vsnameVirtual Server name for assigning ArcIMS service.

When parent element is SERVICES in ADMINCMD while adding an Image or ArcMap Image Service:
AttributeUsage
axlFull pathname to map configuration file or ArcMap document.
cleanupInterval for the number of minutes between the deletion of image files from the Output directory.
imagememoryMaximum size of map image allowed in megabytes. A one megabyte image is approximately 512 x 512 pixels, or 262144 pixels total.
imglocFull pathname to Output directory for generated map and legend images.
imgtypeImage format for the output map images.
imgurlURL to Output directory for generated map and legend images.
nameName of ArcIMS service. Service names are case sensitive.
typeType of action on service.
vsnameVirtual Server name for assigning ArcIMS service.

When parent element is SERVICES in ADMINCMD while removing, starting, or stopping an ArcIMS service:
AttributeUsage
nameName of ArcIMS service. Service names are case sensitive.
typeType of action on service.

When parent element is SERVICES in Application Server RESPONSE:
AttributeUsage
accessAccess type of the Virtual Server. PUBLIC means that the Virtual Server and ArcIMS service can be accessed directly by requests from a client. By default, Image, Feature, ArcMap, and Metadata Servers are public. When access is PRIVATE, Virtual Servers are accessed by redirecting requests from a public server to a private one. Private Virtual Servers include Geocode, Query, and Extract Servers.
nameName of service running on host machine.
servicegroupVirtual Server name to which the specified ArcIMS service belongs.
statusIdentifies if service is currently running or not.
typeVirtual Server type to which the specified ArcIMS service belongs.
versionValue is "ArcMap" for ArcMap Image Services. Value is blank for all other service types.
Back to top 

Examples for SERVICE

Example 1: An ADMINCMD XML file for adding and starting an ArcIMS service from the command line.
<?xml version="1.0"?>
<ADMINCMD version="1.0">
  <SERVICES>
    <SERVICE type="add" name="world_image"
          axl="c:\arcims\axl\world.axl"
          vsname="ImageServer1"
          imgloc="c:\arcims\output"
          imgurl="http://mycomputer.domain.com/output"
          imagememory="4"
          cleanup="20"
          imgtype="JPG" />

    <SERVICE type="start" name="world_image" />

    <SERVICE type="add" name="world_arcmap"
          axl="c:\arcims\axl\world.mxd"
          vsname="ImageServerArcMap1"
          imgloc="c:\arcims\output"
          imgurl="http://mycomputer.domain.com/output"
          imagememory="4"
          cleanup="20"
          imgtype="JPG" />

    <SERVICE type="start" name="world_arcmap" />

    <SERVICE type="add" name="world_feature"
          axl="c:\arcims\axl\world.axl"
          vsname="FeatureServer1"
/>

    <SERVICE type="start" name="world_feature" />

  </SERVICES>
</ADMINCMD>

Example 2: An ADMINCMD XML file for stopping and deleting an ArcIMS service from the command line.
<?xml version="1.0"?>
<ADMINCMD version="1.0">
  <SERVICES>
    <SERVICE type="stop" name="world_image" />
    <SERVICE type="remove" name="world_image" />
  </SERVICES>
</ADMINCMD>

Example 3: When in an application server RESPONSE to GETCLIENTSERVICES.
<?xml version="1.0"?>
<ARCXML version="1.1">
  <RESPONSE>
    <SERVICES>
      <SERVICE name="world" servicegroup="ImageServerArcMap1" access="PUBLIC" type="ImageServer" version="ArcMap"  status="ENABLED" >
        <IMAGE type="JPG" />
        <CLEANUP interval="10" />
      </SERVICE>
      <SERVICE name="europe" servicegroup="ImageServer1" access="PUBLIC" type="ImageServer" version=""  status="ENABLED" >
        <IMAGE type="JPG" />
        <ENVIRONMENT>
          <LOCALE country="US" language="en" variant="" />
          <UIFONT name="Arial" />
        </ENVIRONMENT>
        <CLEANUP interval="10" />
      </SERVICE>
      <SERVICE name="usa" servicegroup="FeatureServer1" access="PUBLIC" type="FeatureServer" version=""  status="ENABLED" >
        <ENVIRONMENT>
          <LOCALE country="US" language="en" variant="" />
          <UIFONT name="Arial" />
        </ENVIRONMENT>
        <CLEANUP interval="10" />
      </SERVICE>
    </SERVICES>
  </RESPONSE>
</ARCXML>

Back to top