Prev | Current Page 766 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

Apress, 2006.), which includes examples
of accessing the Amazon.com, Google, eBay, and Yahoo web services.
Introducing Web Services
A web service is a piece of functionality that is exposed through a web interface using standard
Internet protocols such as HTTP. The messages exchanged by the client and the server are
encoded using an XML-based protocol named Simple Object Access Protocol (SOAP) or by
using Representational State Transfer (REST) and are sent to the server over the HTTP protocol.
REST uses carefully crafted URLs with specific name-value pairs to call specific methods
on the servers. REST is considered to be the easiest way to communicate with the web services
that expose this interface. When using REST to access a web service, you simply make an HTTP
GET request, and you??™ll receive the response in XML format.
SOAP is an XML-based standard for encoding the information transferred in a web service
request or response. SOAP is fostered by a number of organizations, including powerful companies
such as Microsoft, IBM, and Sun.
The beauty of using web services is that the client and the server can use any technology,
any language, and any platform. As long as they exchange information with a standard protocol
such as SOAP over HTTP, there is no problem if the client is a cell phone and the server is
a Java application running on Solaris, for example.


Pages:
754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778
zakłady bukmacherskie Kuchnie na wymiar Warszawa aquilamed opony michelin przenośniki kubełkowe