understand the returned data type, from memory its a "QueryBean" , even
in java you have to write a complex datatype handler to use them.
Granted, I'm no java expert but I've not managed it yet.
When returning data from web services to other langauges it pays to keep
the returned datatypes as simple as possible, on occasion I've encoded a
query into a simple XML packet and returned it as a string, this
certainly helped a colleague of mine use my CF web service form C# .net
Might be a bit of a pain and not exactly neat, but it works.
Craig.
From: Michael Kear [mailto:[EMAIL PROTECTED]
Sent: 16 March 2004 11:28
To: CF-Talk
Subject: RE: CFC Web services wont work with PHP sites
Taking a look at a different part of this issue now . can anyone see
what's
wrong with this code? Why this would work as a web service on one
server
but not another?
<cfcomponent>
<!--- Function for internal use: get anniversaries this week--->
<cffunction name="getthisweek" access="public" returntype="query"
hint="This
returns the anniversaries happening this week as a query ">
<cfquery name="getthisweek" datasource="#application.DSN#">
(Valid SQL Query cut and pasted from Query Builder)
</cfquery>
<cfreturn getthisweek>
</cffunction>
<!--- Function for web service: get anniversaries this week--->
<cffunction name="getthisweeksevents" access="remote" returntype="query"
hint="This returns the anniversaries happening this week as a query for
a
web service ">
<cfquery name="getthisweekevents" datasource="#request.DSN#">
(Same valid query as used above)
</cfquery>
<cfreturn getthisweekevents>
</cffunction>
</cfcomponent>
There isn't any registration in the CF Adminitrator or anything is
there?
The method getthisweek, the first one, works fine internally on the web
site. The second method, getthisweeksevents identical except for its
names
and the access type doesn't work. Anyone able to see why?
Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

