You can simply specify the return type as either wddx or json. PHP has (or at 
least had) a wddx reader. And json is common now, so I suspect php has 
functions for that as well. If you do specify the return type, do it in the url 
not on the attribute of the cffunction. It keeps your web service agnostic so 
to speak.

John
[email protected]


----- Original Message -----
From: [email protected] [mailto:[email protected]]
To: [email protected]
Sent: Thu, 16 Apr 2009 08:01:21 -0400
Subject: Re: [ACFUG Discuss] creating a web service with cf

sure - but you need to decide on a data format. does php support cf query
type? i doubt it - you will likely need to change the query to an array.




Dusty Hale <[email protected]>
Sent by: [email protected]
04/16/2009 01:02 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
[ACFUG Discuss] creating a web service with cf






I have a need which I think would be a good fit to create a web service
but since I have never developed a web service I thought to get some other
opinions.

I have a site which is hosted on a Linux box with php and no CF. I need
for part of this site to use a database and make a little admin app to
manage it. Well I am lazy and don't want to do this with PHP and MySQL
mainly because I know CF and SQL so I just want to do this with what I am
used to. So my thought was that I could create a CFC that would act as a
web service that the PHP site could call remotely. All it needs to do is
get some data from the SQL server and display it in HTML. So I though I
could generate the result HTML in the CFC and the PHP site could call it
remotely. Again the PHP site is not on the same server as the CFC so it
would be a remote call.

This is basically what a web service is for right? Would this approach
work?

Thanks so much in advance for any replies.

Dusty



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------




-------------------------------------------------------------

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-------------------------------------------------------------


Reply via email to