Re: Wacky webservice parameters

2004-03-08 Thread Bryan F. Hogan
What is your setup? It works fine for me.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Wacky webservice parameters

2004-03-08 Thread Barney Boisvert
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]




Re: Wacky webservice parameters

2004-03-08 Thread Bryan F. Hogan
p.s. Did you refresh the web service after making changes to it?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Wacky webservice parameters

2004-03-08 Thread John Stanley
Yes

-Original Message-
From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 2:12 PM
To: CF-Talk
Subject: Re: Wacky webservice parameters

p.s. Did you refresh the web service after making changes to it? 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Wacky webservice parameters

2004-03-08 Thread John Stanley
CFMX version 6.1.0.63958
Enterprise
Windows 2000
IE 6.0.2800

-Original Message-
From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 2:11 PM
To: CF-Talk
Subject: Re: Wacky webservice parameters

What is your setup? It works fine for me. 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Wacky webservice parameters

2004-03-08 Thread John Stanley
I get the same result when I use cfinvokeargument, also to lend further
wackiness, if i remove one of the cfinvokearguments to make the thing bomb,
it shows the correct name-value pairs in the error message:

 
Web service operation ExpectedOvernights with parameters
{numberplanes={4},airport={KYIP},ac_type={DC-9},periodnumber={7},} 

-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 2:12 PM
To: CF-Talk
Subject: RE: Wacky webservice parameters

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]




Re: Wacky webservice parameters

2004-03-08 Thread Bryan F. Hogan
Try this add a new web service with a different name and different file 
name.

Are you using the standard cfdump tag?

Are you running IIS or another web server?

Try restarting the CF service.

John Stanley wrote:

 CFMX version 6.1.0.63958
 Enterprise
 Windows 2000
 IE 6.0.2800
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]