RE: [cfaussie] Coldfusion Web services

2012-06-19 Thread Steve Onnis
Using cfinvoke produces the same outcome

 

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.



RE: [cfaussie] Coldfusion Web services

2012-06-19 Thread Steve Onnis
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.



RE: [cfaussie] Coldfusion Web services

2012-06-19 Thread Steve Onnis
And i get the same error on CF9

 

From: Steve Onnis [mailto:st...@cfcentral.com.au] 
Sent: Tuesday, 19 June 2012 4:11 PM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Coldfusion Web services

 

Using cfinvoke produces the same outcome

 

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.

-- 
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

2012-06-19 Thread Paul Kukiel

Is this what your trying to do Steve?

Example dumps: http://diypoll.com/tmp/ 
http://diypoll.com/tmp/test.cfc?wsdl


Example wsdl: http://diypoll.com/tmp/test.cfc?wsdl

Example method call: http://diypoll.com/tmp/test.cfc?wsdlmethod=getUser

WSDL cfc:

cfcomponent
cffunction name=getUser returntype=user access=remote 
cfargument name=userName required=true type=string /
cfargument name=password required=true type=string /

cfset var u = new User() /
cfset u.username = arguments.username  /
cfset u.password = arguments.password /

cfreturn u /

/cffunction
/cfcomponent

User.cfc
component {
property name=userName;
property name=password;
}

index.cfm

cfset tmp = 
createObject(webservice,http://diypoll.com/tmp/test.cfc?wsdl;) /


cfset result = tmp.getUser(username=Paul, password=zzSecret99 ) /

cfset dmp = {result = result} /

cfdump var=#result.getUserName()# /br /
cfdump var=#result.getPassword()# /
cfdump var=#dmp# /




On 19/06/2012 4:18 PM, Steve Onnis wrote:


Even something as simple as this

cfcomponentname=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 
[mailto:cfaussie@googlegroups.com] *On Behalf Of *Steve Onnis

*Sent:* Friday, June 15, 2012 11:56 PM
*To:* cfaussie@googlegroups.com mailto: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 mailto: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 
mailto:cfaussie@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com 
mailto: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.



--
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

RE: [cfaussie] Coldfusion Web services

2012-06-19 Thread Steve Onnis
Have just been having this discussion with Gavin.

 

This errors

 

  cfproperty name=username /

  cfproperty name=password /

 

 

This does not

 

  cfproperty name=Username /

  cfproperty name=Password /

 

 

 

It seems that the all lowercase spelling will create an error though
changing the case will not create an error.  Am i correct in assuming this
is because of the username/password settings for webservices?

 

From: Paul Kukiel [mailto:kuki...@gmail.com] 
Sent: Tuesday, 19 June 2012 5:07 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Coldfusion Web services

 

Is this what your trying to do Steve?

Example dumps:  http://diypoll.com/tmp/
http://diypoll.com/tmp/test.cfc?wsdl 

Example wsdl:  http://diypoll.com/tmp/test.cfc?wsdl

Example method call:  http://diypoll.com/tmp/test.cfc?wsdl
http://diypoll.com/tmp/test.cfc?wsdlmethod=getUser method=getUser

WSDL cfc:

cfcomponent
cffunction name=getUser returntype=user access=remote 
cfargument name=userName required=true type=string /
cfargument name=password required=true type=string /

cfset var u = new User() /
cfset u.username = arguments.username  /
cfset u.password = arguments.password /

cfreturn u /

/cffunction
/cfcomponent

User.cfc
component {
property name=userName;
property name=password;
}

index.cfm

cfset tmp = createObject(webservice,
http://diypoll.com/tmp/test.cfc?wsdl
http://diypoll.com/tmp/test.cfc?wsdl;) /

cfset result = tmp.getUser(username=Paul, password=zzSecret99 ) /

cfset dmp = {result = result} /

cfdump var=#result.getUserName()# /br /
cfdump var=#result.getPassword()# /
cfdump var=#dmp# /





On 19/06/2012 4:18 PM, Steve Onnis wrote:

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

RE: [cfaussie] Coldfusion Web services

2012-06-19 Thread charlie arehart
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: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Steve Onnis
Sent: Tuesday, June 19, 2012 2:11 AM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Coldfusion Web services

 

Using cfinvoke produces the same outcome

 

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.



RE: [cfaussie] Coldfusion Web services

2012-06-19 Thread Steve Onnis
Charlie

 

The issue is with the cfproperty tag when being used as a web service.
Passing it in using CFINCOKEARGUMENT doesn't matter because the issue
happens just be calling and creating the connection to the web service,
before you even need to be passing in arguments.

 

Take this simple web service given the name say service.cfc

 

cfcomponent name=testws output=false

  cfproperty name=username type=string required=false /

  cfproperty name=password type=string required=false /

 

  cffunction name=ping access=remote returntype=String
output=false

cfreturn Pinged /

  /cffunction

 

/cfcomponent

 

 

Just be doing this

 

cfset myWs = createObject(WEBSERVICE, service.cfc?wsdl) /

 

...will generate an error.

 

What is interesting is that changing the case of the name value to say
Username and Password stops the error from occurring.

 

As i said, the issue isn't with the passing in of the arguments, the issue
is with the instantiation of the service itself.

 

Steve

 

 

From: charlie arehart [mailto:charlie_li...@carehart.org] 
Sent: Wednesday, 20 June 2012 12:47 AM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Coldfusion Web services

 

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: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf
Of Steve Onnis
Sent: Tuesday, June 19, 2012 2:11 AM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Coldfusion Web services

 

Using cfinvoke produces the same outcome

 

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.



RE: [cfaussie] Coldfusion Web services

2012-06-19 Thread charlie arehart
OK. Am just heading out so can't run test. Hope you may find another
resolution (or that you'll report the bug and Adobe resolves it). 

 

/charlie

 

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

 

Charlie

 

The issue is with the cfproperty tag when being used as a web service.
Passing it in using CFINCOKEARGUMENT doesn't matter because the issue
happens just be calling and creating the connection to the web service,
before you even need to be passing in arguments.

 

Take this simple web service given the name say service.cfc

 

cfcomponent name=testws output=false

  cfproperty name=username type=string required=false /

  cfproperty name=password type=string required=false /

 

  cffunction name=ping access=remote returntype=String
output=false

cfreturn Pinged /

  /cffunction

 

/cfcomponent

 

 

Just be doing this

 

cfset myWs = createObject(WEBSERVICE, service.cfc?wsdl) /

 

...will generate an error.

 

What is interesting is that changing the case of the name value to say
Username and Password stops the error from occurring.

 

As i said, the issue isn't with the passing in of the arguments, the issue
is with the instantiation of the service itself.

 

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

2012-06-19 Thread Steve Onnis
I ended up having to rename the property to something else.  This issue
occurs on CF8 and CF9 L

 

From: charlie arehart [mailto:charlie_li...@carehart.org] 
Sent: Wednesday, 20 June 2012 1:02 AM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Coldfusion Web services

 

OK. Am just heading out so can't run test. Hope you may find another
resolution (or that you'll report the bug and Adobe resolves it). 

 

/charlie

 

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

 

Charlie

 

The issue is with the cfproperty tag when being used as a web service.
Passing it in using CFINCOKEARGUMENT doesn't matter because the issue
happens just be calling and creating the connection to the web service,
before you even need to be passing in arguments.

 

Take this simple web service given the name say service.cfc

 

cfcomponent name=testws output=false

  cfproperty name=username type=string required=false /

  cfproperty name=password type=string required=false /

 

  cffunction name=ping access=remote returntype=String
output=false

cfreturn Pinged /

  /cffunction

 

/cfcomponent

 

 

Just be doing this

 

cfset myWs = createObject(WEBSERVICE, service.cfc?wsdl) /

 

...will generate an error.

 

What is interesting is that changing the case of the name value to say
Username and Password stops the error from occurring.

 

As i said, the issue isn't with the passing in of the arguments, the issue
is with the instantiation of the service itself.

 

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

2012-06-19 Thread Barry Beattie
 I ended up having to rename the property to something else.  This issue
 occurs on CF8 and CF9

And yet it hasn't already been reported as a bug/known issue? Curious

-- 
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

2012-06-19 Thread Steve Onnis
It is defiantly not me. Has been confirmed by someone else also.

-Original Message-
From: Barry Beattie [mailto:barry.beat...@gmail.com] 
Sent: Wednesday, 20 June 2012 8:51 AM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Coldfusion Web services

 I ended up having to rename the property to something else.  This 
 issue occurs on CF8 and CF9

And yet it hasn't already been reported as a bug/known issue? Curious

--
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

2012-06-16 Thread charlie arehart
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.



Re: [cfaussie] Coldfusion Web services

2012-06-15 Thread Mike Kear
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

2012-06-15 Thread Steve Onnis
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

2012-06-15 Thread charlie arehart
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

2012-06-15 Thread Steve Onnis
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.