-
1. Re: CF9 AdminAPI administrator.cfc Axis Issue
Adam Presley Dec 31, 2009 7:03 AM (in response to Owain North)Hmmm. I can honestly say I've not tried using the AdminAPI's as a web service directly before, but instead have written wrappers around them, making the wrapper a webservice, and implementing some type of security around that. Let us know if you discover anything else.
-
2. Re: CF9 AdminAPI administrator.cfc Axis Issue
leechristie Jan 2, 2010 4:58 AM (in response to Adam Presley)Cheers for the reply Adam.
I'd thought of doing that but this is for a website creation script which ideally needs to be dumped onto vanilla Windows 2008 CF installs without any other configuration.
I'll carry on bashing my face into a wall in the meantime, any other suggestions will no doubt save me pain so please let me know!
O.
Edit - no idea why I was logged into my boss's account when I sent this.
-
3. Re: CF9 AdminAPI administrator.cfc Axis Issue
Adam Cameron. Jan 2, 2010 6:19 AM (in response to Owain North)I get this on CF9 too.
Raise a bug - http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html - and please report the issue number back here.
This is a good catch: I tested all of the CFAdmin API when it was in beta, and it all worked fine (-ish). Never thought to call anything as web services though.
As someone else suggsted: write a wrapper CFC which acts as a web service bridge between your calling code and local calls to the Admin API. Or, given what you're saying this is for... why are you needing to call these things as web services anyhow? The code you're running will be on the same CF service as the API, yes? It's a CF server you're deploying your code too, innit?
--
Adam
-
4. Re: CF9 AdminAPI administrator.cfc Axis Issue
BKBK Jan 2, 2010 6:38 AM (in response to Owain North)The cause of the error is clear:"returnType must be defined for remote CFC functions". There are indeed remote functions in the CFC that have no return-type.You can see that when you open
http://127.0.0.1/CFIDE/adminapi/administrator.cfc
A function must have a return-type if it is to be used as a web service. It's perhaps an idea to let the Adobe Coldfusion team know about this. If they expect functions in the administrator CFC to be used as web services, then what you have found is definitely a bug.
-
5. Re: CF9 AdminAPI administrator.cfc Axis Issue
Owain North Jan 2, 2010 6:37 AM (in response to Adam Cameron.)Cheers Adam.
I've raised bug 81413 with Adobe. I'm now of the thinking that this issue came about for a very simply reason - it's because I'm cursed by the Devil himself to always stumble on seemingly minor yet showstopping bugs no matter what I do or what technology I'm using at the time.
I'm actually writing a website creation application for the hosting company I work for - it's a VB.NET application and so far I've got it creating IIS websites, setting permissions, creating MySQL and SQLExpress databases all with no problems whatsoever. I'm trying to make the app as generic as possible so it'll also run on our CF servers and create the sandboxes and DSNs. Therefore I'm trying not to have to create anything custom within the CF install, hence not wanting to wrap the CFCs up.
I love the pain really.
Cheers for the help.
O.
-
6. Re: CF9 AdminAPI administrator.cfc Axis Issue
Adam Cameron. Jan 2, 2010 6:41 AM (in response to Owain North)What would be wrong with the VBS script deploying a CFC (or, hell, even a CFM) which you use during install and then clean up afterwards? It's trivia compared to the rest of the stuff you're doing. It also has the benefit that it will work, which your current approach will not ;-) I mean... what's your other option, really?
--
Adam
-
7. Re: CF9 AdminAPI administrator.cfc Axis Issue
BKBK Jan 2, 2010 6:43 AM (in response to Owain North)@Owainnorth
...it's because I'm cursed by the Devil himself to always stumble on seemingly minor yet showstopping bugs no matter what I do or what technology I'm using at the time.It is actually a blessing.
-
8. Re: CF9 AdminAPI administrator.cfc Axis Issue
Adam Cameron. Jan 2, 2010 6:44 AM (in response to Owain North)Oh, and I've voted for the bug, and referred them back to this thread as well.
--
Adam
-
9. Re: CF9 AdminAPI administrator.cfc Axis Issue
Owain North Jan 2, 2010 6:49 AM (in response to Adam Cameron.)Cheers guys.
I'm confused what you mean by "no other option" - I'm expecting Adobe to have it fixed by the morning
Yes I may indeed have to dynamically create a cfc then call it and yes it'd work; it's just a dirty little hussy of a solution that I really don't fancy that much. So, that'll me my job for Monday morning then!
I'm off for some more devil-worshipping.
O.
-
10. Re: CF9 AdminAPI administrator.cfc Axis Issue
Owain North Feb 1, 2010 12:41 AM (in response to Owain North)Impressively, I've got an email from Adobe (well, Macromedia...?) saying they've fixed this bug, and it'll be sorted from 9.0.1.
Noice.
-
11. Re: CF9 AdminAPI administrator.cfc Axis Issue
BKBK Feb 1, 2010 10:53 AM (in response to Owain North)Thanks for your efforts, and for keeping us informed.


