Skip to main content
EMS Software, LLC

GetLocations

Description

Returns a list of locations

Request Parameters

Name

Description

Type

UserName

MC User Name

String

Password

MC User Password

String

Response Elements

Name

Description

Type

Name

Location Name

String

LocationID

Loocation ID

Integer

Url

Location Url

String

Sample Code

private void GetLocations()

 {

        MCAPI.MCAPIService svc = new MCAPI.MCAPIService();

        svc.Url = "http://yourserver/MCAPI/MCAPIService.asmx?WSDL";

 

        StringReader sr = new StringReader(svc.GetLocations("username", "pwd"));

        DataSet ds = new DataSet();

        System.Xml.XmlDocument doc = new System.Xml.XmlDocument();

        doc.LoadXml(sr.ReadToEnd());

        ds.ReadXml(new System.Xml.XmlNodeReader(doc));

  }

Example Response

<Locations>

    <LocationID>15</LocationID>

    <Name>10th Floor</Name>

    <Url>http://maps.google.com/</Url>

  </Data>

  <Data>

    <LocationID>11</LocationID>

    <Name>11th Floor</Name>

    <Url>http://maps.google.com/</Url>

  </Data> </Locations>