Lets pretend I have a webservice like this:
<cffunction name="ExpectedOvernights" access="remote" returnType="any">
<cfargument name="ac_type" type="string">
<cfargument name="airport" type="string">
<cfargument name="numberplanes" type="any">
<cfargument name="periodnumber" type="any">
<cfargument name="testing" type="any">
<cfreturn arguments>
</cffunction>
My calling page is thus:
<cfset args = StructNew()>
<cfset args.ac_type = "DC-9"><!---url.aircraft_type --->
<cfset args.airport = "KYIP"><!---url.origin --->
<cfset args.numberplanes = 4><!--- url.hid_num_planes_origin --->
<cfset args.periodnumber = 7><!--- url.periodnumber --->
<cfset args.testing = "boo">
<cfinvoke webservice="Cost_Model" method="ExpectedOvernights"
returnVariable="a_result_set" argumentCollection="#args#">
If I then dump a_result_set, I get:
struct
AC_TYPE 4
AIRPORT KYIP
NUMBERPLANES DC-9
PERIODNUMBER boo
TESTING 7
What gives with this? I have tried spelling out each parameter in the
cfinvoke tag, I have tried refreshing the webservice, referring to each
element in the structure, but for some reason, the argument name value pairs
are getting mixed up. Using CFMX. Tried looking in the manuals
andDiscovering CFC's, but no luck there.
Thanks in advance to anyone who can shed some light on this weird one.
John
<FONT face=Arial></FONT>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

