H. Introducción a SOAP

Versión para imprimir.

1. SOAP

Fuente: https://es.wikipedia.org/wiki/Simple_Object_Access_Protocol

2. Estructura de los mensajes de SOAP

Mensajes SOAP

Fuente: https://es.wikipedia.org/wiki/Simple_Object_Access_Protocol

3. Ejemplo de solicitud SOAP

1
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
2
 <soap:Header>
3
  <t:Transaction xmlns:t="alguna-URI" soap:mustUnderstand="1">
4
   5
5
  </t:Transaction>
6
 </soap:Header>
7
 <soap:Body>
8
  <getDetalleDeProducto xmlns="http://warehouse.example.com/ws">
9
   <productoId>827635</productoId>
10
  </getDetalleDeProducto>
11
 </soap:Body>
12
</soap:Envelope>

4. Ejemplo de respuesta SOAP

1
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
2
 <soap:Body>
3
  <getRespuestaDetalleDeProducto xmlns="http://warehouse.example.com/ws">
4
   <getResultadoDetalleDeProducto>
5
    <productId>827635</productId>
6
    <nombre>Balón de Futbol</nombre>
7
    <descripcion>Balón de futbol de 11” de vinil.</descripcion>
8
    <precio>300.0</precio>
9
   </getResultadoDetalleDeProducto>
10
  </getRespuestaDetalleDeProducto>
11
 </soap:Body>
12
</soap:Envelope>