Guys, Just in case anyone wants to implement an address finder for a given postcode, then here is some (CFMX obviously) code. Found the webservice on xmethods.net.
HTH Paul ---code--- <cfparam name="url.pcode" default="HP4 1JZ"> <cfset webservice_pcode = rereplace(url.pcode, "\s", "", "all")> <cfinvoke webservice = "http://www.lixusnet.com/lixusnet/AddFinder.jws?wsdl" method = "process" s = "#trim(webservice_pcode)#" returnVariable = "address_array"> <cfoutput> <form> <input type="text" name="pcode" value="#url.pcode#"> <input type="submit" value="Get Addresses..."> </form> <br /> <cfif arraylen(address_array) eq 0> <p>Not a valid postcode, or not yet in the database.</p> <cfelse> <select name="address"> <cfloop from="1" to="#arraylen(address_array)#" index="i"> <option value="#address_array[i]#">#address_array[i]#</option> </cfloop> </select> </cfif> </cfoutput> ---code--- ----------------------------------- Paul Johnston PJ Net Solutions Ltd http://www.pjnetsolutions.com [EMAIL PROTECTED] +44 (0)7866 573013 -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
