Gavin
And here i thought i'd struck gold. Feel free to send you code off site
and i'll see if i can reproduce.
The URL you're seeing here is just a string ColdFusion uses under the
hood when it generates the WSDL for your CFC. It's really just a label
and doesn't need to relate to the actual URL being called.
Phil
On 16/04/10 11:45 AM, Gavin Baumanis wrote:
Hi Phil,
Sorry to the bearer of bad news...
but that doesn't work for me.
I get the following error:
Cannot perform web service invocation send.
The fault returned when invoking the web service operation is:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Deserializing parameter
'sendReturn': could not find deserializer for type {http://
www.vhosts.loginServiceSampleApp.loginservice}loginService
Interestingly - the web addreess is wrong in that string... I'm
guessing it should be http://localhost..... and not http://www.vhosts....?
I tried it by just replacing the copy from trunk with your code from
this morning AND
by using the CFIF block you posted earlier in the thread too - both
throw the same error.
I changed my local method to be access="remote" and called it directly
via URI;
http://localhost/loginservice/loginServiceSampleApp/vhosts/www/loginService.cfc?wsdl&method=fn_authenticate_user
and I get a whole page of text returned.
If I try to pass any attributes to the function in the URI version eg;
http://localhost/loginservice/loginServiceSampleApp/vhosts/www/loginService.cfc?wsdl&method=fn_authenticate_user(user='test_user',password='test_password')
I get the following error... which seems a bit strange - since without
the attributes it seems to return something!
coldfusion.runtime.TemplateProxy$InvalidMethodNameException: The
method fn_authenticate_user(user='test_user',password='test_password')
was not found in component /Library/WebServer/Documents/loginService/
loginServiceSampleApp/vhosts/www/loginService.cfc.
Would it help if I sent you my code?
Gavin
On Apr 16, 10:39 am, Phil Haeusler<[email protected]> wrote:
Hi Gavin,
I think we're in luck,
Can you just try changing that Line 416 in Service.cfc from the original
<cfreturn webService.send(missingMethodName, missingMethodArguments)>
to
<cfreturn webService.send(missingMethodName,
Duplicate(missingMethodArguments))>
It seems that there might be something different under the hood of only
the missingMethodArguments argument in the onMissingMethod function in
CF9. Running a Duplicate() on it seems to fix it up into proper struct
which can then successfully be passed to the underlying webservice.
Can you double check and confirm that this fix works for you also.
Thanks
Phil
On 15/04/10 11:32 PM, Gavin Baumanis wrote:
Well,
To keep everyone in the loop;
The brains-trust at tonight's Melbourne CFUG all gave me some
assistance with trying to "nut-out" what I had done wrong.
(After the presentation on using the built-in debugger of CFBuilder)
Happy to report that I hadn't done anything wrong - it turns out to be
a CF9 related issue. Well that was the consensus anyway!
Just to prove them right , I have just downloaded / installed CF8 and
my code works fine and dandy.
It seems there is an issue with attribute type casting within the
Galaxy code - where it uses Java classes directly.
Phil has kindly offered to take the baton on this one and work with
Robin to see if it can be resolved for CF9.
It's not all doom and gloom though.... if the CFC is called locally
then Galaxy will correctly create as many instances of the object that
I have asked it to - and all arguments are accepted / actioned as one
would expect too.
So we can continue to re-develop our application using Galaxy SOA as
long all the CFCs are local - which is most likely going to be the
case (at least initially), even when the Remote type casting has ben
nutted out.
Gavin.
--
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.
--
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.