SOAP HTTP Binding
- Previous Page SOAP Fault
- Next Page SOAP Example
HTTP Protokoli
HTTP yana ƙaɗe da kuma ƙaɗe da TCP/IP. HTTP ƙanshi yana ƙaɗe da TCP ga HTTP ƙasar. Bayan ƙaɗe da ƙaɗe, ƙanshi yana iya samun wani HTTP ƙalama ƙasa:
POST /item HTTP/1.1 Host: 189.123.345.239 Content-Type: text/plain Content-Length: 200
Kwamtarun dake ƙasa ake ƙarɗe da shi, kuma ƙasa ake samun wani HTTP ƙalama. Ƙalaman wannan ƙalama ta ƙamata ƙarin ƙasa:
200 OK Content-Type: text/plain Content-Length: 200
In the above example, the server returned a 200 status code. This is the standard success code of HTTP.
If the server cannot decode the request, it may return information similar to this:
400 Bad Request Content-Length: 0
SOAP HTTP Binding
SOAP method refers to HTTP request/response that complies with SOAP encoding rules.
HTTP + XML = SOAP
SOAP requests can be HTTP POST or HTTP GET requests.
The HTTP POST request specifies at least two HTTP headers: Content-Type and Content-Length.
Content-Type
The Content-Type header of SOAP requests and responses can define the MIME type of the message and the character encoding used for the XML body of the request or response (optional).
Grammar
Content-Type: MIMEType; charset=character-encoding
Example
POST /item HTTP/1.1 Content-Type: application/soap+xml; charset=utf-8
Content-Length
The Content-Length header of SOAP requests and responses specifies the number of bytes in the request or response body.
Grammar
Content-Length: bytes
Example
POST /item HTTP/1.1 Content-Type: application/soap+xml; charset=utf-8 Content-Length: 250
- Previous Page SOAP Fault
- Next Page SOAP Example