SOAP classes

xiaoxiao2021-03-06  37

SOAP structure, http://www.cnblogs.com/hbzxf/ Since 1994, the Internet has developed rapidly, naturally, in order to adapt to the basic application of the network produce a lot of application level agreement, HTTP protocol It is one of the primary protocols that are commonly used in communication between web browsers and web servers. However, its maximum shortcomings are only with fairly simple requests and transmission such as transmission commands, such as: GET, POST, PUT, and the role is only mainly reflected in the browsing function of the data, in order to meet the data between applications. Sharing and data exchange, SOAP simple object access protocol was born in 1998. SOAP Simple Object Access Protocol The primary purpose is to resolve communication between applications between different platforms and different systems, and XML language programmed the SOAP preferred outline language. SOAP structure, it can also be understood that SOAP messages mainly include three main elements: SOAP , soap

, soap soap , called message root element, is also a header element of the message, and This element is one of the elements that must exist in the SOAP message. The main role is to tell the acceptor's basic situation. SOAP
For the Header element, it is unnecessary in a SOAP message. If there is a Header element, it must be the first child element of Envelope, the main role is to deliver some adjuvant additional messages, such as Authentication, session, etc. SOAP Body element is called SOAP message, this element is one of the elements that must be in each SOAP message, and a Body element can be composed of multiple sub-elements. Here is a special element element in the body element, which can set the error message for reporting the message when sending a message generating an error. The following example is taken from the Internet-Draft specification description: Post / stockquote http / 1.1 host: www.stockquoteserver.com content-type: text / xml content-length: nnnn SOAPMETHODNAME: Some-namespace-URI # getLastTradeprice

转载请注明原文地址:https://www.9cbs.com/read-64315.html

New Post(0)