HI Gavin
I made the following adjustment to Service.cfc to get it working on CF9
for remote calls for methods with no parameters.
You'll need to adjust the cfreturn in the onMissingMethod function of
Service.cfc - Line 416 in latest trunk from
<cfreturn webService.send(missingMethodName, missingMethodArguments)>
to
<cfif not StructCount(missingMethodArguments)>
<cfreturn webService.send(missingMethodName, JavaCast("null", 0))>
<cfelse>
<cfreturn webService.send(missingMethodName, missingMethodArguments)>
</cfif>
I haven't tested to see if this change breaks earlier versions of CF,
but it was done in a made rush to get my laptop up and running for the
last Melb CFUG. If you can try this and it gets it working for you, and
we can ensure that it doesn't break earlier CFs we'll put it to Robin to
get it committed into SVN
Phil
On 15/04/10 9:57 AM, Gavin Baumanis wrote:
HI Phil,
That is great news... thanks..
Great news in the sense that its not me - and that maybe my code is
going to work afterall!
I had a quick look in the Galaxy code - but I have never ever done any
remote service work so it was all a little foreign to me.
Thanks again.
Gavin.
On Apr 15, 9:28 am, "Phil Haeusler"<[email protected]> wrote:
Gavin
If i recall correctly, i'm pretty sure i had to make some changes to Robin's
code to make the remote services part work under CF9 when i was playing with
it. There was a difference between CF8& CF9 around how parameters passed
through CFINVOKE are handled. I'll dig up my code in a bit and get back to
you.
Phil
-----Original Message-----
From: Gavin Baumanis<[email protected]>
To: cfaussie<[email protected]>
Date: Wed, 14 Apr 2010 16:18:37 -0700 (PDT)
Subject: [cfaussie] Re: WSDL assistance.
Well I decided that I should have a play with Robin's Demo application
and make sure that I could get that working...
And it would seem there might be some other issue other than code
going on here, because I get the exact same error when trying to run
the sample application.
I turned on debug output and when the error is thrown I get the
following message;
Cannot perform web service invocation send.
The fault returned when invoking the web service operation is:
'' java.lang.IllegalArgumentException: argument type mismatch
In the separate debug output window I get a different message though.
/Library/WebServer/Documents/rocketboots/galaxy/trunk/com/rocketboots/
galaxy/Service.cfc(416) @ 09:10:05.780
type Application
message Cannot perform web service invocation send.
I don't know if the messags mean the same and they're ust represented
differently or what the story is...
Can I bother someone to download the download Galaxy and try out the
sample app?
I'm on CF9 - so I'd be interested to see if it is a CF version
specific issue or not.
You can obtain the required code (via SVN) from;
http://svn.rocketboots.com/os/galaxy/
[http://svn.rocketboots.com/os/galaxy/]
Thanks.
--
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
athttp://groups.google.com/group/cfaussie?hl=en
[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 [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.