[Building Sakai] Web services questions

Boyd, Amy E amyboyd at txstate.edu
Fri Jan 21 15:18:16 PST 2011


I'm trying to write a php script that will add a tool to several sites.  I know web services is a slow way to do this, but accessing the db directly is a scary prospect...  :O

I keep getting the following error when trying to add the tool to a page:

org.sakaiproject.exception.IdUnusedException : null

I've got a session, and the call goes like this:

$active->addNewToolToPage($session, "52ae25e2-e880-41fd-bf71-17b30c67af20", "Mailtool", "Mailtool", "sakai.mailtool", "0,0");

The page actually exists so that's not the problem.  I think it's a problem with the siteid, but I've tried everything I know of to try, including prepending "/site/" to the id.

Does anyone have any working  samples of this call in php?  I'd love to see a few different scripts if anyone has them.  I've been googling for hours and haven't come up with what I'm looking for.

Running 2.6.2.

Thanks all!
-Amy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110121/6b765193/attachment.html 


More information about the sakai-dev mailing list