[cfaussie] Coldfusion Web services
Has anyone run into an issue with reserves words for cfproperty names? I am creating a web service which i want to be able to pass in a username/password. I have added in a cfproperty with the name of username and another named password though i am getting an exception when those names are used. Below is the error i am getting 10. public class JobConfiguratorServiceLocator extends org.apache.axis.client.Service implements jobconfigurator.JobConfiguratorService { ^--- -^ *** Semantic Error: The checked exception RemoteException is not assignable to any exception in the throws clause of the accessible method void setUsername(java.lang.String $1); declared in type org.apache.axis.client.Stub. Can you not have username/password as properties of a web service? I am pretty sure i have been able to use them for normal cfc use but i am getting this error when using them as a web service. The WSDL loads up fine also so there is no issue there. Only issue is when trying to access the web service and actually use it. Steve -- 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.
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 Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Fri, Jun 15, 2012 at 4:04 PM, Steve Onnis st...@cfcentral.com.au wrote: Has anyone run into an issue with reserves words for cfproperty names? ** ** ** ** I am creating a web service which i want to be able to pass in a username/password. I have added in a cfproperty with the name of “username” and another named “password” though i am getting an exception when those names are used. Below is the error i am getting ** ** ** ** 10. public class JobConfiguratorServiceLocator extends org.apache.axis.client.Service implements jobconfigurator.JobConfiguratorService { ^^ *** Semantic Error: The checked exception RemoteException is not assignable to any exception in the throws clause of the accessible method void setUsername(java.lang.String $1); declared in type org.apache.axis.client.Stub. ** ** ** ** Can you not have username/password as properties of a web service? I am pretty sure i have been able to use them for normal cfc use but i am getting this error when using them as a web service. ** ** The WSDL loads up fine also so there is no issue there. Only issue is when trying to access the web service and actually use it. ** ** ** ** Steve -- -- 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.
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 Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month On Fri, Jun 15, 2012 at 4:04 PM, Steve Onnis st...@cfcentral.com.au wrote: Has anyone run into an issue with reserves words for cfproperty names? I am creating a web service which i want to be able to pass in a username/password. I have added in a cfproperty with the name of username and another named password though i am getting an exception when those names are used. Below is the error i am getting 10. public class JobConfiguratorServiceLocator extends org.apache.axis.client.Service implements jobconfigurator.JobConfiguratorService { ^--- -^ *** Semantic Error: The checked exception RemoteException is not assignable to any exception in the throws clause of the accessible method void setUsername(java.lang.String $1); declared in type org.apache.axis.client.Stub. Can you not have username/password as properties of a web service? I am pretty sure i have been able to use them for normal cfc use but i am getting this error when using them as a web service. The WSDL loads up fine also so there is no issue there. Only issue is when trying to access the web service and actually use it. Steve -- -- 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.
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 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.
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 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. -- 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.