For two years, the publicity associated with the Simple Object Access Protocol (SOAP) does not apply to almost fade, although the increase based on his opponent. While some critics are tired of hearing, Web services, architects are few Internet argument surprisingly well to choose soap: The better way is to create a slide show Web services that the state transfers (AN).
The AN-old philosophy of the new technology. While the soap seems to be the first phase of the development of the Internet to launch with the new requirements of the philosophy of AN to support the principles and protocols of existing facilities to create many web strong. This means that developers can understand HTTP and XML Web services to build to start immediately, without the packaging than those normally used for the development of Internet applications.
Flexible Interface
The rest of the way the Web interface main services, which are already known and widely used to write: URI. For example, can reveal the price of the service, where users enter the stock symbol on the stock market, real-time pricing to provide as simple as writing on the Web server that the URI: http:// www. somebrokerage.com / quote? = Symbol QQQ.
An application from any client or HTTP server to easily access services using HTTP GET support. Depending on how the service provider to write the script, the result of the HTTP response as simple as one of the many rules and the thread of the current price of a particular symbol. Or it could be an XML document.
Interface method has significant advantages over SOAP services. Any developer can understand how the URI can create and edit their Web access means soap, however, requires special skills that the new XML specification, and most of the developers kit make a soap request and explain the results.
Light the bandwidth
Another advantage of the calm surface, the questions and answers short. Asks SOAP XML wrapper around each application and respond. After the column name and type declaration, the stock four or five numbers and the SOAP response costs by more than 10 times the number of bytes the same reaction to the so-called PART.
Proponents argue that rigid soap essential element for distributed applications. In practice, even if the two applications, one type of data and services in advance of the data requests and responses for any reason whatsoever.
How do I know the data types and their position in the first reaction? PART Like soap, is still the same document with the edges of the input and output parameters. The good thing about AN the flexibility that developers can a WSDL file for their benefits to make a statement if necessary write access. Otherwise, the statement as a simple web page, people read to say: “Give this service a number of entries in the form q = icon, which is the current price per share of text chains.”
Security Guard
Perhaps the most interesting aspect of PART Vs. Soap in the security discussions. Although the area, said an appeal sent by the remote procedure is standard HTTP SOAP port is a good way to get your support for Web services in the organization, the proponents believe that the practice of design does not ensure the security network. PART calls over HTTP or HTTPS went well, but the rest of the manager (or firewall) to use for each message, the analysis of the HTTP request to make a difference. For example, a GET request is always safe because it does not change, by definition, not details. And “can only retrieve the data.
SOAP requests are normal, which in turn uses POST to communicate with the service provided. And look at the SOAP envelope, a task that most of the resources and uses firewall has no way of knowing if the application can retrieve only the data, or using a database table.
For authentication and authorization, SOAP provides the load in the hands of application developers. Methodology of the rest, but assume that the web server and is responsible for these tasks. The use of industry standards and common identity, such as LDAP servers, developers can do on the net for the hard work.
This helps the developers, not only, but also simplifies the task of administrators may want to use something as simple as a Web ACL, both in the same way as any other URI.
Not all
To be honest, not the best solution for all web services. The data must be protected so that there are no parameters and URI. And large amounts of data, such as purchase orders in detail, it can quickly be rotated beyond the boundaries of the URI. In this case, SOAP is a solid solution. Yet it is important to break and drive to take the soap, only when necessary. This allows for the development of applications that are easily accessible.
Fortunately, the philosophy YOUR Web developers to get. The latest version of the SOAP specification is currently certain services are exposed via URIs (even if the SOAP response message). In addition, users of Microsoft. NET services can be published via the GET request. All this marks a change in thinking about how Web services interface.
Developers understand that sending and receiving messages always express the best way to use SOAP. Sometimes the interface is not the answer simple text magic and save time and resources in the process.