1. SOAP and RESTful web services in
Sakai
Steve Swinsburg
Senior So;ware Engineer / Sakai Fellow
The Australian Na@onal University
September 2010
2. SOAP services
Enabling and securing them
How to use them
REST services
How to use them
En@ty Broker
Overview
4th Australian Sakai Conference ‐ September 15‐17, 2010 2
5. Using the SOAP services
• Script them via Perl / PHP / Java ...
• If Perl, the SOAP::Lite module is excellent!
• Or use a client:
• Mac: h^p://ditchnet.org/soapclient/
• PC/Mac/Linux: h^p://www.soapui.org/
4th Australian Sakai Conference ‐ September 15‐17, 2010 5
8. Using the REST services
• Simply make a request!
• /direct/profile/steve.json
• /direct/user/current.xml
• /direct/announcement/user.json?n=10&d=30
4th Australian Sakai Conference ‐ September 15‐17, 2010 8
10. En@ty Broker
• Fast becoming the defacto standard for exposing
your data.
• More consumers than just Java (PHP/JS/even just
HTML)
• e.g. profile images exposed as direct link
/direct/profile/steve/image
4th Australian Sakai Conference ‐ September 15‐17, 2010 10
11. En@ty Broker
• If you have a service layer, include EB
• Can have your providers in your webapp
• Special Spring setup to allow them to register
• Can also register events with SiteStats via
En@tyBroker.
• Easy config, all done within the tool rather than within
SiteStats.
4th Australian Sakai Conference ‐ September 15‐17, 2010 11
13. Questions?
SOAP services info and code samples
h0p://confluence.sakaiproject.org/display/WEBSVCS/How+to+use
+the+Sakai+Web+Services
REST services info
h0p://your.sakai.server/direct
4th Australian Sakai Conference ‐ September 15‐17, 2010 13