I am trying to do something along the same lines where I am trying to send a (returntype = query) which I am trying to change to a non-complex datatype to a .NET service. I see that you say there are other ways to do so but I am having problems with some that I found. I am trying to use queryToXML and take the xmlobj and change it using the toSting() function. But how do you return this value, and if so what is the returntype going to be. I keep getting an error in this free .NET webservice studio. If you have any other ideas on how to do this any help will be useful at this point, I am pulling my hair out here.

In the following code I am using this script embedded but no shown to save space:
http://www.cflib.org/udf.cfm?ID=648

Code:

<CFFUNCTION Name="GetSingleDate" returntype="string" access="remote">

<cfargument Name="FromDate" type="date" required="true">

<CFQUERY Name="RetrievedSingleDayData" Datasource="odbc">
...
</CFQUERY>

<cfscript>
        q = RetrievedSingleDayData;
xmlObj = queryToXML(q);
xmlString = toString(xmlObj);
</cfscript>

<cfreturn xmlString>

</CFFUNCTION>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to