User Tools

Site Tools


dl-xml-example

This is an old revision of the document!


Dealer Locator XML API

This “web service” (we're using that term pretty loosely) accepts an HTTP POST pretty much identical to the ones posted from a browser in the Iframe and Ajax approaches. However, it's assumed that this POST will be submitted by your server rather than your user's browser, and the results are returned as an XML data structure. You can then exercise your favorite XML parser and use the resulting structured data to generate formatted results in, for example PHP, a perl CGI, or Rails/Ruby.

We don't have any formal WSDL, but here's what the XML looks like:

<locations><location>
<street1>de La Gauchetière Oues</street1>
<city>Montreal</city>
<stateProvinceCode>11</stateProvinceCode>
<stateProvince>Quebec</stateProvince>
<zip>H3B 4Y7</zip>
<countryCode>30</countryCode>
<country>Canada</country>
<partnerName>Allianz Limited</partnerName>
<hq_flag>N</hq_flag>
<phone/>
<fax/>
</location><location>
<street1>458 First Street</street1>
<city>Vancouver</city>
<stateProvinceCode>2</stateProvinceCode>
<stateProvince>British Columbia</stateProvince>
<zip>V6Z 1Z7</zip>
<countryCode>30</countryCode>
<country>Canada</country>
<partnerName>Allianz Limited</partnerName>
<hq_flag>Y</hq_flag>
<phone>(541) 338-2234</phone>
<fax/>
</location>
dl-xml-example.1241821396.txt.gz · Last modified: 2009/05/08 22:23 by jay