SlideShare une entreprise Scribd logo
1  sur  13
SOAP
and
RESTful
web
services
in

            Sakai
                  Steve
Swinsburg
        Senior
So;ware
Engineer
/
Sakai
Fellow
          The
Australian
Na@onal
University
                  September
2010
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
SOAP
services
• Provided
via
Apache
Axis
• Can
expose
any
API
method,
just
inject
the
service

  bean
and
use
it
• Run@me
compila@on,
can
modify
‘live’
• Require
a
valid
session,
generally
admin.
  • There’s
a
webservice
to
do
that!
   http://your.sakai.server/sakai-axis/*.jws




      4th
Australian
Sakai
Conference
‐
September
15‐17,
2010   3
Enabling
the
SOAP
services
• Disabled
by
default
• In
sakai.proper@es:

                      webservices.allowlogin=true
                      webservices.allow=.+
                      webservices.log-allowed=true
                      webservices.log-denied=true




• This
is
insecure
though.
Setup
properly.


       4th
Australian
Sakai
Conference
‐
September
15‐17,
2010   4
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
Demo


4th
Australian
Sakai
Conference
‐
September
15‐17,
2010          6
REST
services
• Provided
via
En@tyBroker
• RESTful
URLs
and
adheres
to
HTTP
standard
for

  ac@ons
and
responses
• Return
XML/JSON/HTML
view
of
an
en@ty
or
list
of

  en@@es
• Default
ac@ons
(GET,
PUT,
DELETE
etc)
• Can
also
define
custom
ac@ons
           http://your.sakai.server/direct

      4th
Australian
Sakai
Conference
‐
September
15‐17,
2010   7
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
Demo
&
jQuery
code
sample


4th
Australian
Sakai
Conference
‐
September
15‐17,
2010   9
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
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
EB
code
sample


4th
Australian
Sakai
Conference
‐
September
15‐17,
2010   12
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

Contenu connexe

En vedette

Getting started with Sakai development
Getting started with Sakai developmentGetting started with Sakai development
Getting started with Sakai developmentSteve Swinsburg
 
What’s a REST API and why should I care?
What’s a REST API and why should I care?What’s a REST API and why should I care?
What’s a REST API and why should I care?topher1kenobe
 
MDN @ 10 Years: Mistakes, Successes, and Lessons
MDN @ 10 Years: Mistakes, Successes, and LessonsMDN @ 10 Years: Mistakes, Successes, and Lessons
MDN @ 10 Years: Mistakes, Successes, and LessonsJanet Swisher
 
Restful webservice
Restful webserviceRestful webservice
Restful webserviceDong Ngoc
 
Soap and restful webservice
Soap and restful webserviceSoap and restful webservice
Soap and restful webserviceDong Ngoc
 
API 101 - Understanding APIs
API 101 - Understanding APIsAPI 101 - Understanding APIs
API 101 - Understanding APIs3scale
 
Restful Web Services
Restful Web ServicesRestful Web Services
Restful Web ServicesAngelin R
 
REST to RESTful Web Service
REST to RESTful Web ServiceREST to RESTful Web Service
REST to RESTful Web Service家弘 周
 
API 101 - Understanding APIs.
API 101 - Understanding APIs.API 101 - Understanding APIs.
API 101 - Understanding APIs.Kirsten Hunter
 

En vedette (14)

Getting started with Sakai development
Getting started with Sakai developmentGetting started with Sakai development
Getting started with Sakai development
 
What’s a REST API and why should I care?
What’s a REST API and why should I care?What’s a REST API and why should I care?
What’s a REST API and why should I care?
 
What's an api
What's an apiWhat's an api
What's an api
 
MDN @ 10 Years: Mistakes, Successes, and Lessons
MDN @ 10 Years: Mistakes, Successes, and LessonsMDN @ 10 Years: Mistakes, Successes, and Lessons
MDN @ 10 Years: Mistakes, Successes, and Lessons
 
Restful webservice
Restful webserviceRestful webservice
Restful webservice
 
Soap and restful webservice
Soap and restful webserviceSoap and restful webservice
Soap and restful webservice
 
API for Beginners
API for BeginnersAPI for Beginners
API for Beginners
 
API 101 - Understanding APIs
API 101 - Understanding APIsAPI 101 - Understanding APIs
API 101 - Understanding APIs
 
Restful Web Services
Restful Web ServicesRestful Web Services
Restful Web Services
 
Api for dummies
Api for dummies  Api for dummies
Api for dummies
 
REST to RESTful Web Service
REST to RESTful Web ServiceREST to RESTful Web Service
REST to RESTful Web Service
 
API 101 - Understanding APIs.
API 101 - Understanding APIs.API 101 - Understanding APIs.
API 101 - Understanding APIs.
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
 
RESTful API Design, Second Edition
RESTful API Design, Second EditionRESTful API Design, Second Edition
RESTful API Design, Second Edition
 

Similaire à SOAP and REST web services in Sakai

Connecting Sakai and uPortal (AuSakai 2010)
Connecting Sakai and uPortal (AuSakai 2010)Connecting Sakai and uPortal (AuSakai 2010)
Connecting Sakai and uPortal (AuSakai 2010)Steve Swinsburg
 
Connecting Sakai and uPortal
Connecting Sakai and uPortalConnecting Sakai and uPortal
Connecting Sakai and uPortalSteve Swinsburg
 
Is Sakai Always This Slow?
Is Sakai Always This Slow?Is Sakai Always This Slow?
Is Sakai Always This Slow?mizematr
 
Media Mosa : Architecture and Features, Utrecht, 10 June 2010
Media Mosa : Architecture and Features, Utrecht,  10 June 2010Media Mosa : Architecture and Features, Utrecht,  10 June 2010
Media Mosa : Architecture and Features, Utrecht, 10 June 2010Frans Ward
 
Sunset to Sunrise (University of Windsor)
Sunset to Sunrise (University of Windsor)Sunset to Sunrise (University of Windsor)
Sunset to Sunrise (University of Windsor)tcollins29
 
MediaMosa architecture & features
MediaMosa architecture & features MediaMosa architecture & features
MediaMosa architecture & features MediaMosa
 
Application Testing in NoTa Design Flow
Application Testing in NoTa Design FlowApplication Testing in NoTa Design Flow
Application Testing in NoTa Design FlowJohan Lilius
 
The University of Waterloo Open Data API
The University of Waterloo Open Data APIThe University of Waterloo Open Data API
The University of Waterloo Open Data APINathan Vexler
 
London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18Phil Wilkins
 
Next Generation_WVI
Next Generation_WVINext Generation_WVI
Next Generation_WVIPrasad Kapu
 
Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018Phil Wilkins
 
SOA/SCA FraScAti
SOA/SCA FraScAtiSOA/SCA FraScAti
SOA/SCA FraScAtiInria
 
Develop ASP.Net Web Service
Develop ASP.Net Web Service Develop ASP.Net Web Service
Develop ASP.Net Web Service Safaa Farouk
 
Profile2 - Social networking for Sakai2
Profile2 - Social networking for Sakai2Profile2 - Social networking for Sakai2
Profile2 - Social networking for Sakai2Steve Swinsburg
 
New To Sakai
New To SakaiNew To Sakai
New To Sakaiknoopwww
 
fiware-lab-dev-3.pdf
fiware-lab-dev-3.pdffiware-lab-dev-3.pdf
fiware-lab-dev-3.pdfssuser8c74ba
 
WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015Pavel Bucek
 
Oracle REST Data Services
Oracle REST Data ServicesOracle REST Data Services
Oracle REST Data ServicesChris Muir
 

Similaire à SOAP and REST web services in Sakai (20)

Connecting Sakai and uPortal (AuSakai 2010)
Connecting Sakai and uPortal (AuSakai 2010)Connecting Sakai and uPortal (AuSakai 2010)
Connecting Sakai and uPortal (AuSakai 2010)
 
Connecting Sakai and uPortal
Connecting Sakai and uPortalConnecting Sakai and uPortal
Connecting Sakai and uPortal
 
Is Sakai Always This Slow?
Is Sakai Always This Slow?Is Sakai Always This Slow?
Is Sakai Always This Slow?
 
Media Mosa : Architecture and Features, Utrecht, 10 June 2010
Media Mosa : Architecture and Features, Utrecht,  10 June 2010Media Mosa : Architecture and Features, Utrecht,  10 June 2010
Media Mosa : Architecture and Features, Utrecht, 10 June 2010
 
Sunset to Sunrise (University of Windsor)
Sunset to Sunrise (University of Windsor)Sunset to Sunrise (University of Windsor)
Sunset to Sunrise (University of Windsor)
 
MediaMosa architecture & features
MediaMosa architecture & features MediaMosa architecture & features
MediaMosa architecture & features
 
Application Testing in NoTa Design Flow
Application Testing in NoTa Design FlowApplication Testing in NoTa Design Flow
Application Testing in NoTa Design Flow
 
The University of Waterloo Open Data API
The University of Waterloo Open Data APIThe University of Waterloo Open Data API
The University of Waterloo Open Data API
 
London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18London Oracle Developer Meetup April 18
London Oracle Developer Meetup April 18
 
Next Generation_WVI
Next Generation_WVINext Generation_WVI
Next Generation_WVI
 
Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018Oracle Developer Meetup March 2018
Oracle Developer Meetup March 2018
 
SOA/SCA FraScAti
SOA/SCA FraScAtiSOA/SCA FraScAti
SOA/SCA FraScAti
 
Develop ASP.Net Web Service
Develop ASP.Net Web Service Develop ASP.Net Web Service
Develop ASP.Net Web Service
 
Profile2 - Social networking for Sakai2
Profile2 - Social networking for Sakai2Profile2 - Social networking for Sakai2
Profile2 - Social networking for Sakai2
 
New To Sakai
New To SakaiNew To Sakai
New To Sakai
 
fiware-lab-dev-3.pdf
fiware-lab-dev-3.pdffiware-lab-dev-3.pdf
fiware-lab-dev-3.pdf
 
WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015WebSocket in Enterprise Applications 2015
WebSocket in Enterprise Applications 2015
 
Oracle REST Data Services
Oracle REST Data ServicesOracle REST Data Services
Oracle REST Data Services
 
FraSCAti with OSGi
FraSCAti with OSGiFraSCAti with OSGi
FraSCAti with OSGi
 
BEST REST in OpenStack
BEST REST in OpenStackBEST REST in OpenStack
BEST REST in OpenStack
 

Dernier

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Dernier (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

SOAP and REST web services in Sakai

Notes de l'éditeur