Steve, if you (or others reading this) are ever in a situation where you
have no control over the argument names of the web service you were calling,
there may be yet another solution.

As discussed, the problem is that tags like CFINVOKE, while they do let you
pass in arguments to the web service, do have reserved keywords for username
and password (to pass in basic authentication), which means you just can't
pass arguments with those names this way. 

A workaround that used to work was that if instead you passed them in on
CFINVOKEARGUMENT, that would work. Similarly, if you changed to using
createobject to call the web service, then called the method passing them
in, that too would work.

If those may interest you to consider, I'd be interest to hear if it's still
a good workaround for this problem.

 

/charlie

 

From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Steve Onnis
Sent: Friday, June 15, 2012 3:10 AM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Coldfusion Web services

 

If i rename username and password to _username and _password the problem
goes away

 

From: Mike Kear [mailto:afpwebwo...@gmail.com] 
Sent: Friday, 15 June 2012 5:05 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Coldfusion Web services

 

Sorry if it's a dumb question Steve,  but like you, I wouldn't have thought
'username' or 'password' would be reserved words.   Have you checked that
the problem goes away if you change the variable names to something else?
(and therefore prove that it's the variable names that are causing the
problem?)

 

Cheers
Mike Kear

 

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to