WS2c - SOAPx

fortnecessityusefulΛογισμικό & κατασκευή λογ/κού

14 Δεκ 2013 (πριν από 4 χρόνια και 18 μέρες)

108 εμφανίσεις

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)