Steve, please reread my note below more carefully. I do realize that CFINVOKE fails (if you try to use it to pass in username and password as arguments, but don't mean to use them for basic auth).
I said that the solution was instead to pass them in with CFINVOKEARGUMENT (the username and password, as 2 cfinvokeargument's) *within* the cfinvoke. Can you let us know if that helps? BTW, I realize you're also focusing on possible issues with CFPROPERTY, and I saw your later note pointing out the case issue. I'm still proposing that cfinvokeargument may get around either issue, so worth trying. As always, just trying to help. /charlie From: [email protected] [mailto:[email protected]] On Behalf Of Steve Onnis Sent: Tuesday, June 19, 2012 2:11 AM To: [email protected] Subject: RE: [cfaussie] Coldfusion Web services Using cfinvoke produces the same outcome From: charlie arehart [mailto:[email protected]] Sent: Sunday, 17 June 2012 3:06 AM To: [email protected] Subject: RE: [cfaussie] Coldfusion Web services Right, sorry on my adding createobject. But what about cfinvokeargument? True, it's not script (though CF10 did at least add an invoke statement), but I was just pointing out alternatives if you were stuck (and in both cases I was going from memory from years ago). Can you confirm if it helps you? /charlie From: [email protected] [mailto:[email protected]] On Behalf Of Steve Onnis Sent: Friday, June 15, 2012 11:56 PM To: [email protected] Subject: RE: [cfaussie] Coldfusion Web services Charlie I am using createObject() to connect to the webservice. The error happens during the invocation process, not during the method call. From: charlie arehart [mailto:[email protected]] Sent: Saturday, 16 June 2012 12:08 AM To: [email protected] Subject: RE: [cfaussie] Coldfusion Web services 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 -- You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
