Skip to main content
Participant
March 16, 2008
Question

Coldfusion admin api via web services?

  • March 16, 2008
  • 4 replies
  • 876 views
Hi There,

I'm looking ti access the coldfusion admin api using web services, but not from coldfusion so I cant use the normal createObject("component","cfide.adminapi.administrator").login("admin"); I've tried using SOAP to request the login method at http://mydomain.com/cfide/adminapi/administrator.cfc?wsdl but the request fails as coldfusion returns the login dialog (as it does if you try to access the WSDL from a browser.

Does anyone know if it's possible to login and access the CFIDE through standard SOAP calls rather than just through coldfusion and how I might go about it.

Thanks in advance,

Tom
This topic has been closed for replies.

4 replies

Inspiring
March 18, 2008
Hi,

Have a try with this "CFADMIN Web Service API" opensource project available at riaforge!.

http://cfadminwsapi.riaforge.org/



BKBK
Community Expert
Community Expert
March 18, 2008
!

loftxAuthor
Participant
March 17, 2008
Hi thanks for pointing that out - I should have noticed the WSDL file didn't have any methods available before posting here.

Cheers,

Tom
BKBK
Community Expert
Community Expert
March 16, 2008
You can't invoke such admin components as a web service. Even if you could it wouldn't work.

You can only call a method in a component as a webservice if its access is remote. However, the methods of the system components /cfide/adminapi/administrator.cfc, /cfide/adminapi/datasource.cfc, etc. have either public or package access. Verify this by running, for example,

<cfscript>
adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login("your_admin_password");
</cfscript>
<cfdump var="#adminObj#">