Office Web Service

This Web Service, located at https://secure.idxre.com/ihws/OfficeWebService.cfc?wsdl, exposes the following methods:

·   getAllOffices – returns XML containing all of client's offices.

      Argument List:

o        uid – company’s iHomefinder client ID number.

o        sid - company’s iHomefinder password.

·   getOfficesByID - returns XML containing a single office record based on company's internal office id.

      Argument List:

o        uid – company’s iHomefinder client ID number.

o        sid - company’s iHomefinder password.

o        OfficeID – company’s internal office id (OfficeCompanyCode).

·   updateOffices - adds or updates office info based on client's internal office code.

      Argument List:

o        uid – company’s iHomefinder client ID number.

o        sid - company’s iHomefinder password.

o        XmlDataString - an XML string that specifies the data values for update.  The XmlDataString must be formatted as XML, must have a root element of "officelist", and must contain the child element officecompanycode (company’s internal office code).  Child elements are:

q       officename – Name of office

q       officecompanycode – Company’s internal ID for office

q       priority – Office’s display order in office list

q       phone – Office phone

q       fax – Office fax

q       address – Office address

q       city – Office city

q       state – Office state

q       zip – Office zip code

q       officephotourl – URL for office photo

q       officeheader – HTML for header of office page

q       officeareaid – Area ID for Office (contact iHomefinder for area ID’s)

q       officedescription – Description of office

·   deleteOffices - deletes office info based on client's internal office codes.

      Argument List:

o        uid – company’s iHomefinder client ID number.

o        sid - company’s iHomefinder password.

o        XmlDataString - an XML string that specifies the data values for update.  The XmlDataString must be formatted as XML, must have a root element of "officelist", and must contain the child element officecompanycode (company's internal office code).

 

 

An example that consumes the webservice using Cold Fusion is:

 

<cfinvoke webservice="https://secure.idxre.com/ihws/OfficeWebService.cfc?wsdl"

  method="updateOffices" uid="1" sid="password"

  XmlDataString="XML_Data"

  returnVariable="UpdateOffices">

</cfinvoke>

 

Where the clientid is 1, the password is “password”, and XML_Data is the XML data.

 

An example XML data file can be viewed here.