Ask a Question related to Coldfusion Component Development, Design and Development.
-
Tom Jordahl #1
Re: Using Web Services for Stored Procedures?
Doug,
Try creating a cfcomponent that has multiple cfproperty tags in it with the
data you want to return. Then defined that CFC component as the return type
of the cffunction.
I think that will get you what you want:
<!--- Data type CFC --->
<cfcomponent name="myinfo">
<cfproperty name="retval" type="numeric">
<cfproperty name="mseq" type="string">
...
</cfcomponent>
<!--- Web Service CFC --->
<cfcomponent>
<cffunction name="fcnWS_Login_SP" access="remote" returntype="myinfo"
output="false">
....
Hope that gets you on the right track.
--
Tom Jordahl
Macromedia.
Tom Jordahl Guest
-
Stored Procedures
Hi all, I'm a little confused about how to obtain a result set from a stored procedure (stored in a Visual FoxPro 8.0 database) from an ASP.NET... -
cf and foxpro stored procedures
I have successfully connected to my colleagues foxpro database via odbc and can query, add and update info. I was hoping he could write into his... -
dt_ Stored Procedures
Please could you tell me if it is safe to remove the dt_ stored procedures from my database? I have spent some time searching the web/groups for... -
New to ASP and Stored Procedures
Hi I have some experince with ASP and databases in General, however Stored Procedures are new. I need to call a stored procedure and have bene... -
Stored Procedures and 4GL
Hello, I am using Informix 7 se database. Is it possible to call a 4GL program from a stored procedure? Thanks Ahmer -
Doug_iCohere #2
Re: Using Web Services for Stored Procedures?
Tom,
Thanks for the advice. I eventually discovered the problem - and it had been
staring me right in the face. I read many times about refreshing CFC's in CF
Administrator, but what I failed to realize (or read, despite reading many,
many threads covering this issue) is that once you invoke the CFC the first
time, the Administrator automatically logs it under webservices, thereby
caching it. Even if you delete it from the log, it gets re-created again the
very next time it's invoked. I hope this clarification helps other people if
they experience this same snafu.
I may try your suggestion anyway...but I have a question about it - If I
return a cfcomponent that contains multiple cfproperties that are structs or
arrays, can the cfreturn handle this (i.e. multiple arrays/structs)?
Thanks again,
Doug E.
Doug_iCohere Guest
-
Tom Jordahl #3
Re: Using Web Services for Stored Procedures?
Doug,
Glad you found the solution to your previous problem. Yes all web services
are "registered" in the admin. What this means is that the Java code
generated from the WSDL has been created and compiled. This is expensive,
so we only want to do this once.
or> I may try your suggestion anyway...but I have a question about it - If I
> return a cfcomponent that contains multiple cfproperties that are structs> arrays, can the cfreturn handle this (i.e. multiple arrays/structs)?
It can., but remember the structs map *anything* to *anything* and in the
web service world it is much better to be explicit about things and thus use
another cfcomponent instead of a struct.
--
Tom Jordahl
Tom Jordahl Guest



Reply With Quote

