SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Destaque

API 101 - Understanding APIs.
API 101 - Understanding APIs.API 101 - Understanding APIs.
API 101 - Understanding APIs.
Kirsten Hunter
 

Destaque (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
 

Semelhante a SOAP and RESTful web services in Sakai

Connecting Sakai and uPortal
Connecting Sakai and uPortalConnecting Sakai and uPortal
Connecting Sakai and uPortal
Steve Swinsburg
 
Application Testing in NoTa Design Flow
Application Testing in NoTa Design FlowApplication Testing in NoTa Design Flow
Application Testing in NoTa Design Flow
Johan 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 API
Nathan Vexler
 
Next Generation_WVI
Next Generation_WVINext Generation_WVI
Next Generation_WVI
Prasad Kapu
 
Profile2 - Social networking for Sakai2
Profile2 - Social networking for Sakai2Profile2 - Social networking for Sakai2
Profile2 - Social networking for Sakai2
Steve Swinsburg
 

Semelhante a SOAP and RESTful 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
 

Último

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Último (20)

10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 

SOAP and RESTful web services in Sakai

Notas do Editor