Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. ·...

15
Unraveling the Web Services An Introduc7on to SOAP, WSDL and UDDI Sri Harsha Bolise?

Transcript of Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. ·...

Page 1: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Unraveling  the  Web  Services        

An  Introduc7on  to  SOAP,  WSDL  and  UDDI  

 Sri  Harsha  Bolise?  

Page 2: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Overview  

•  Web  Services  

•  SOAP  

•  WSDL  

•  UDDI  

Page 3: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Introduc7on    

•  All   business   units,   organiza7ons   have   their   own  

approach  to  store  and  exchange  data.  

•  Interoperability  between  them  is  a  problem!  

•  Web   services   are   developed   to   simplify   this  

process   by   defining   a   standardized   mechanism  

for  exchanging  data.  

Page 4: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Web  Services    

•  Web   services   are   soJware   components   which  

communicate  using  web  technologies  like  HTTP.  

•  Web   services   framework   is   divided   into   three  

areas   –   communica7on  protocol   (SOAP),   Service  

Descriptor  (WSDL)  and  service  discovery  (UDDI)  

Page 5: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

SOAP  

•  Simple  Object  Access  Protocol    

•  Its  an  XML  based  protocol  for  exchanging  data  

over  HTTP.  

•  SOAP   provides   a   way   to   communicate  

between   applica7ons   regardless   of   their  

plaSorm  or  programming  language.  

Page 6: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Elements  of  SOAP  

•  Envelope   –   specifies   that   XML   document   is   a   SOAP  

message  

•  Header   –   contains   applica7on   specific   informa7on  

about  SOAP  message.  

•  Body  –    includes  the  message  payload  

•  Fault   –   carries   informa7on   about   a   client   or   server  

error.  

Page 7: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Example  for  SOAP  

Page 8: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

WSDL  

•  Web  Services  Descrip7on  Language.  

•  Its  an  XML  –  based  format  for  describing  web  

services.    

•  Clients  wishing  to  access  a  web  service  can  just  read    

and  interpret  its  WSDL  file  to  learn  about  the  

loca7on  of  the  service  and  its  available  opera7ons.  

Page 9: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

WSDL  Document  Structure  

•  Message  –  describes  names  and  format  of  the  message  supported  by  the  

service.  

•  Types  –  defines  the  data  types  used  by  the  service  for  sending  messages  

between  client  and  server.  

•  Port  Type  –  defines  a  web  service,  the  opera7ons  that  can  be  performed  

and  the  messages  that  are  involved.  

•  Binding   –   A   protocol   and   data   format   specifica7on   for   a   par7cular   port  

type  

Page 10: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

WSDL  Example  

Page 11: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

UDDI  

•  Universal   Descr ip7on   Discovery   and  

Integra7on.  

•  UDDI   is   a   directory   for   storing   informa7on  

about  web  services.  

•  UDDI   describes   services   using   WSDL   and  

communicates  via  SOAP  messaging.  

Page 12: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *
Page 13: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Advantages  of  Web  Services  

•  Applica7on  and  data  Integra7on.  

•  Versa7lity.  

•  Code  re-­‐use.  

•  Communica7on  Protocol’s  reliability.  

•  Cost  Savings.  

Page 14: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *

Conclusion  

•  Web   services   provides   a   systema7c   and   extensible  

framework  for  applica7on  interac7ons.  

•  Web  services  have  evolved  as  a  prac7cal,  cost-­‐effec7ve  

solu7on   for   uni7ng   informa7on   distributed   between  

cri7cal   applica7ons  over  opera7ng   systems,  plaSorms  

and  language  barriers  that  were  previously  impassable  

Page 15: Unraveling*the*Web*Services**tozsu/courses/CS755/F13/... · 2015. 1. 1. · Unraveling*the*Web*Services** * An*Introduc7on*to*SOAP,*WSDL*and*UDDI* Sri*Harsha Bolise *