GetCityStateProvinceLoqate
GetCityStateProvinceLoqate returns a city and state/province for a given input postal code.
This stage is part of the Spectrum Universal Addresse.
Resource URL
http://server:port/soap/GetCityStateProvinceLoqate
Example
The following shows a SOAP request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:get="http://www.precisely.com/spectrum/services/GetCityStateProvinceLoqate"
xmlns:spec="http://spectrum.precisely.com/">
<soapenv:Header/>
<soapenv:Body>
<get:GetCityStateProvinceLoqateRequest>
<get:input_port>
<get:Input>
<get:PostalCode>60510</get:PostalCode>
<get:Country>USA</get:Country>
</get:Input>
</get:input_port>
</get:GetCityStateProvinceLoqateRequest>
</soapenv:Body>
</soapenv:Envelope>
This would be the response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns3:GetCityStateProvinceLoqateResponse xmlns:ns2="http://spectrum.precisely.com/"
xmlns:ns3="http://www.precisely.com/spectrum/services/GetCityStateProvinceLoqate">
<ns3:output_port>
<ns3:Result>
<ns3:ProcessedBy>LOQATE</ns3:ProcessedBy>
<ns3:PostalCode>60510</ns3:PostalCode>
<ns3:City>Batavia</ns3:City>
<ns3:StateProvince>IL</ns3:StateProvince>
<ns3:Country>United States</ns3:Country>
<ns3:Status/>
<ns3:Status.Code/>
<ns3:Status.Description/>
<ns3:user_fields/>
</ns3:Result>
</ns3:output_port>
</ns3:GetCityStateProvinceLoqateResponse>
</soap:Body>
</soap:Envelope>