Mayor Vincent C. Gray

Search
DC.gov   OCTO

 

accordian interface begins

About OCTO

Data

Maps & Apps

Agency Support

OCTO Logo

Office of the Chief Technology Officer


Office Hours
Monday through Friday, 8:30 am - 5:30 pm

How to Reach Us
200 I Street, SE
5th Floor
Washington, DC 20003
octo@dc.gov

Phone: (202) 727-2277
Fax: (202) 727-6857
TTY: 711

FOIA Information
Agency Performance

Website: http://octo.dc.gov

DC Digital Inclusion 


Rob Mancini
Chief Technology Officer

Ask the Agency

 
Text Size: A A A Printer-Friendly Version Print   Share Share  

Use the MAR Web Data Service in Client Script 


var xmlHttpObj;
if (window.ActiveXObject)
    {
        try
        {
           xmlHttpObj= new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e)
        {
           xmlHttpObj= new ActiveXObject("Msxml2.XMLHTTP");
        }
    }
    else
        xmlHttpObj= new XMLHttpRequest();

if (xmlHttpObj) {
  // We want this request asynchronous
  xmlHttpObj.open("POST","http://citizenatlas.dc.gov/newwebservices/locationverifier.asmx/findLocation", true);
  xmlHttpObj.onreadystatechange = function()
  {
if ( xmlHttpObj.readyState == READYSTATE_COMPLETE )
{
if(xmlHttpObj.status == HTTPSTATUS_OK)
{
                    //add your processing here
                    var doc = xmlHttpObj.responseXML;
                }
}
  }

  xmlHttpObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
  xmlHttpObj.setRequestHeader("SOAPAction", "str");
  // Execute the request        
  xmlHttpObj.send("str="+ strLocation);
}

 

 

Service Need

Use the following code to include the Master Address Repository (MAR) Web Data Service in a client script.

Service at a Glance

Provided By: OCTO
Days: Accessible 24 x 7
Location: 441 4th Street NW Washington, DC 20001
Cost of Service: Free