I don't believe you can use argumentscollection on a web serivice.  CF is
probably just listing the members of the struct in whatever order they are
returns (unknown) as the named parameters of the web service.  What happens
if you specify them explicity, using CFINVOKEARGUMENT?

Cheers,
barneyb

> -----Original Message-----
> From: John Stanley [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 08, 2004 11:02 AM
> To: CF-Talk
> Subject: Wacky webservice parameters
>
> Okay, I'm wondering whats going on.
>  
> 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]

Reply via email to