"SOAP Version 1.2 provides the definition of
the XML-based information which can be used for exchanging structured
and typed information between peers in a decentralized, distributed environment."
[W3C]
- SOAP is a communication protocol
- SOAP is for communication between applications
- SOAP is a format for sending messages
- SOAP is designed to communicate via Internet
- SOAP is platform independent
- SOAP is language independent
- SOAP is based on XML
- SOAP is simple and extensible
- SOAP allows you to get around firewalls
- SOAP will be developed as a W3C standard
Python (2.0) examples (with SOAP.py):
import SOAP
from SOAPpy import SOAPProxy
====
server = SOAP.SOAPProxy("http://services.xmethods.net/soap")
print server._ns("urn:xmethods-delayed-quotes").getQuote(symbol
= "AMZN")
====
server = SOAP.SOAPProxy("http://services.xmethods.net/soap")
print server._ns("urn:xmethods-CurrencyExchange").getRate(country1="usa",
country2="canada")
print server._ns("urn:xmethods-CurrencyExchange").getRate(country1="usa",
country2="japan")
====
server = SOAP.SOAPProxy("http://services.xmethods.net:80/perl/soaplite.cgi")
print server._ns("urn:xmethodsBabelFish").BabelFish(translationmode="en_fr",
sourcedata="soap is good for translation") ====
|