Even something as simple as this....
<cfcomponent name="testws" output="false"> <cfproperty name="username" /> <cfproperty name="password" /> </cfcomponent> Just calling that produces this error 10. public class WsServiceLocator extends org.apache.axis.client.Service implements component.WsService { ^--------------------------------------------------------------------------- ---------^ *** Semantic Error: The checked exception "RemoteException" is not assignable to any exception in the throws clause of the accessible method "java.lang.String getUsername();" declared in type "org.apache.axis.client.Stub". 10. public class WsServiceLocator extends org.apache.axis.client.Service implements component.WsService { ^--------------------------------------------------------------------------- ---------^ *** Semantic Error: The checked exception "CFCInvocationException" is not assignable to any exception in the throws clause of the accessible method "java.lang.String getUsername();" declared in type "org.apache.axis.client.Stub". Any ideas? This is on CF8 by the way From: charlie arehart [mailto:charlie_li...@carehart.org] Sent: Sunday, 17 June 2012 3:06 AM To: cfaussie@googlegroups.com 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: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Steve Onnis Sent: Friday, June 15, 2012 11:56 PM To: cfaussie@googlegroups.com 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:charlie_li...@carehart.org] Sent: Saturday, 16 June 2012 12:08 AM To: cfaussie@googlegroups.com 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 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. -- 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.