Although many technologies can be used to implement a service-oriented architecture (SOA), Web services are most commonly used. Although many technologies can be used to implement a service-oriented architecture (SOA), Web services are most commonly used.
This means to use XML. SOAP and REST are the two most popular methods for implementing Web services, both of which are based on XML.
Example
For example, you can send a request to the Google Web service by sending this SOAP document as a Web request. (As shown in listing 2) lifecycle
Listing 2. send a request to the Google Web service by sending a SOAP document
00000000000000000000000000000000
death star trash compactor
0
10
true
false
latin1
latin1
Here we can see that the SOAP envelope (envelope) is a standard format that the Web service engine can understand.
The content of this message (in this example, the doGoogleSearch element) is considered as a payload, which is composed of information to be processed by Web services.
What is the relationship between XML and Web services and SOA? For more information, see The PHP Chinese website (www.php1.cn )!