SERVICE  Examples

Used in:  Application Server RESPONSE   Application Server Administration  
Parent elements:  SERVICES  

<SERVICE Attribute Description Table


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

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

     When parent element is SERVICES in ADMINCMD while removing, starting, or stopping a MapService:
     name ="string"
     type ="remove | start | stop"

     When parent element is SERVICES in Application Server RESPONSE:
     access ="PUBLIC | PRIVATE"
     name ="string"
     servicegroup ="string"
     status ="ENABLED | DISABLED"
     type ="string"
>


     When parent element is SERVICES in ADMINCMD:
          No child elements

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

</SERVICE >
Bold: Attribute or child element is required.


Description:


Restrictions:


Notes:


Attribute Descriptions for SERVICE:


When parent element is SERVICES in ADMINCMD while adding a Feature MapService:
Attribute Usage Back to Top
axl Full pathname to map configuration file.
name Name of MapService. MapService names are case sensitive.
type Type of action on MapService.
vsname Virtual Server name for assigning MapService.

When parent element is SERVICES in ADMINCMD while adding an Image MapService:
Attribute Usage Back to Top
axl Full pathname to map configuration file.
cleanup Interval for the number of minutes between the deletion of image files from the Output directory.
imagememory Maximum size of map image allowed in megabytes. A one megabyte image is approximately 512 x 512 pixels, or 262144 pixels total.
imgloc Full pathname to Output directory for generated map images.
imgtype Image format for the output map images.
imgurl URL to Output directory for generated map images.
name Name of MapService. MapService names are case sensitive.
type Type of action on MapService.
vsname Virtual Server name for assigning MapService.

When parent element is SERVICES in ADMINCMD while removing, starting, or stopping a MapService:
Attribute Usage Back to Top
name Name of MapService. MapService names are case sensitive.
type Type of action on MapService.

When parent element is SERVICES in Application Server RESPONSE:
Attribute Usage Back to Top
access Access type of the Virtual Server. PUBLIC means that the Virtual Server and MapService can be accessed directly by requests from a client. By default, Image Servers and Feature 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 Servers, Query Servers, and Extract Servers.
name Name of MapService running on host machine.
servicegroup Virtual Server name that the specified MapService belongs to.
status Identifies if MapService is currently running or not.
type Virtual Server type the specified MapService belongs to.
 

Examples for SERVICE:

Example 1: An ADMINCMD XML file for adding and starting a MapService from the command line. Back to Top
<?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_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 a MapService from the command line. Back to Top
<?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. Back to Top
<?xml version="1.0"?>
<ARCXML version="1.1">
<RESPONSE>
  <SERVICES>
    <SERVICE name="world_feature" servicegroup="FeatureServer1" access="PUBLIC" type="FeatureServer" desc=""  status="ENABLED" >
      <ENVIRONMENT>
        <LOCALE country="US" language="en" />
        <UIFONT name="Arial" />
      </ENVIRONMENT>
      <CLEANUP interval="20" />
    </SERVICE>
    <SERVICE name="world_image" servicegroup="ImageServer1" access="PUBLIC" type="ImageServer" desc=""  status="ENABLED" >
      <ENVIRONMENT>
        <LOCALE country="US" language="en" />
        <UIFONT name="Arial" />
      </ENVIRONMENT>
      <CLEANUP interval="20" />
    </SERVICE>
  </SERVICES>
</RESPONSE>
</ARCXML>