WS2c - SOAPx

fortnecessityusefulDéveloppement de logiciels

14 déc. 2013 (il y a 3 années et 10 mois)

104 vue(s)

SOAP

Simple Object Access Protocol

SOAP


XML


Usually sent via HTTP


Usually sent as HTTP POST request


request and response must be content type
text/xml


client must include SOAPAction header


<?xml version="1.0" encoding="UTF
-
8
"?>

<
S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">


<
S:Body>


<ns2:add xmlns:ns2="http://ws.notborder.org/">


<x>5</x>


<y>6</y>


</ns2:add>


</S:Body>

</S:Envelope>

Car Rental Website


2 x Audi A8


3 x BMW 501i


1 x Morning



Database: table ‘cars’ (inc. url to car image)


Web methods:


getCarInfo() (returns id, name, image url, price)