SOAP

therapistarmySoftware and s/w Development

Dec 14, 2013 (3 years and 10 months ago)

95 views

SOAP  
Chirag
Mehta!
COEN 316 Summer 2010!
SOAP  -­‐  From  W3C  
“  SOAP  is  a  lightweight  protocol  for  exchange  of  informa8on  in  a  
decentralized,  distributed  environment.  It  is  an  XML  based  protocol  that  
consists  of  three  parts:  an  envelope  that  defines  a  framework  for  describing  
what  is  in  a  message  and  how  to  process  it,  a  set  of  encoding  rules  for  
expressing  instances  of  applica8on-­‐defined  datatypes,  and  a  conven8on  for  
represen8ng  remote  procedure  calls  and  responses.  SOAP  can  poten8ally  be  
used  in  combina8on  with  a  variety  of  other  protocols;  however,  the  only  
bindings  defined  in  this  document  describe  how  to  use  SOAP  in  combina8on  
with  HTTP  and  HTTP  Extension  Framework  ”  
Chirag
Mehta!
COEN 316 Summer 2010!
SOAP  –  What  does  it  have?  
w

The  SOAP  envelope  
w

The  SOAP  encoding  rules  
w

The  SOAP  RPC  
Chirag
Mehta!
COEN 316 Summer 2010!
Message  Exchange  Model  
Endpoint  AcCons  
w

IdenCfies  the  message  
w

Verifies  mandatory  parts  
w

Forwards  message  if  required  
Endpoint  Must  Understand  
w

Message  Exchange  Protocol  
w

Role  of  recipient  
w

Data  Encoding  
Chirag
Mehta!
COEN 316 Summer 2010!
SOAP  Message  
SOAP  Envelope  
w

Header  
w

Body  
w

Fault  
SOAP  AOributes  
w

encodingStyle
 
w

mustUnderstand
 
w

actor  
Chirag
Mehta!
COEN 316 Summer 2010!
SOAP  RPC  
w

URI  of  the  target  service  
w

Name  of  the  operaCon  
w

Method  signature  (opConal)  
w

Parameters  List  
w

Header  Data  
Chirag
Mehta!
COEN 316 Summer 2010!
SOAP  not  designed  for  
w

Distributed  garbage  collecCon  
w

Batching  of  messages  
w

Object-­‐by-­‐reference  
w

AcCvaCon  
Chirag
Mehta!
COEN 316 Summer 2010!
SOAP/HTTP  vs  RMI/IIOP  
Why  SOAP  is  a  
bad  
idea  
w

ASCII  Protocol  
w

Non-­‐NaCve  EJB  Protocol  
w

May  consume  more  memory  
w

Requires  more  work  
Why  SOAP  is  a  
good  
idea  
w

HTTP  as  transport  
w

Firewall  friendly  
w

Language  neutral  
Chirag
Mehta!
COEN 316 Summer 2010!
Why  SOAP/HTTP  vs  HTTP  +  XML  
w

RouCng  and  reliable  messaging  across  nodes  
w

End  to  end  encrypCon  
w

IntegraCon  with  legacy  system  
w

Non-­‐HTTP  communicaCons  protocol  
w

MulCpart  transacCons  
Chirag
Mehta!
COEN 316 Summer 2010!
So  what  do  we  do?  
“  it’s  just  as  wrong  to  blindly  reject  SOAP  as  to  blindly  accept  it  ”    
 Michael  Champion