hmm, I'm trying the StoredNearest method and am able to successfully
interrogate it using the url method through a browser, but not through CFMX,
which throws a java type mismatch error. 

odd...

Their docs seem to be inaccurate as well (ie, units are like 'pcaUnitMiles'
not 'enUnitTypeMiles' which is what their docs say).


> -----Original Message-----
> From: Tim Blair [mailto:[EMAIL PROTECTED]]
> Sent: 15 January 2003 17:21
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Webservices + MX
> 
> 
> 
> > yea - new one works fine:
> 
> Yup, but for some reason if there's an error (e.g. invalid account
> number etc) then it still returns one result (albeit empty).  
> Oh and if
> there are no matches, the psquery.getresults().getpcainterim() bit
> returns a NULL value, which of course throws CF into a bit of 
> a paddy...
> 
> 
> <cfscript>
>     service = 
> "http://services.postcodeanywhere.co.uk/lookup.asmx?wsdl";;
>     account = "AAAAA11111";
>     license = "AA11-AA11-AA11-AA11";
>     postcode = "RG12 1BW";
>     ws = createobject("webservice", service);
>     psquery = ws.ByPostcode(postcode, account, license);
> </cfscript>
> 
> <cfif psquery.geterrornumber()>
>     <!--- there's an error --->
>     <cfoutput>
>         <p>Error #psquery.geterrornumber()#:
> #psquery.geterrormessage()#</p>
>     </cfoutput>
> <cfelseif psquery.records>
>     <!--- we've got some results back --->
>     <cfset resarr = psquery.getresults().getpcainterim()>
>     <cfoutput>
>         <cfloop from="1" to="#arraylen(resarr)#" index="i">
>             [#resarr[i].getid()#] #resarr[i].getdescription()#<br>
>         </cfloop>
>     </cfoutput>
> <cfelse>
>     <!--- no --->
>     <p>No matches</p>
> </cfif>
> 
> Enough of this, it's nearly the end of the day, time to go run around
> throwing a piece of plastic in the name of sport...
> 
> Tim.
> 
> 
> -------------------------------------------------------
> OUR NEW SITE IS NOW LIVE
> Visit our new website at http://www.rawnet.com/ and
> race around the beautiful Bracknell streets at
> http://xmas.rawnet.com/
> -------------------------------------------------------
> Tim Blair
> Web Application Engineer, Rawnet Limited
> Direct Phone : +44 (0) 1344 393 441
> Switchboard : +44 (0) 1344 393 040
> -------------------------------------------------------
> This message may contain information which is legally
> privileged and/or confidential.  If you are not the
> intended recipient, you are hereby notified that any
> unauthorised disclosure, copying, distribution or use
> of this information is strictly prohibited. Such
> notification notwithstanding, any comments, opinions,
> information or conclusions expressed in this message
> are those of the originator, not of rawnet limited,
> unless otherwise explicitly and independently indicated
> by an authorised representative of rawnet limited.
> -------------------------------------------------------
> 
> 
> 
> -- 
> ** 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]
> 


-- 
** 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]

Reply via email to