soap-api tagged requests and articles

Categorized request examples and articles tagged with [soap-api] keyword
POST XML Example
An example of sending an XML string to the target URL. In this post XML example, the Content-Type: application/xml request header indicates the media type of the resource in the request body. The Accept: application/xml request header tells the server that the client expects an XML media type. The Content-Type: application/xml response header indicates that the server returned XML.

Curl Command to POST an XML String
An example of a Curl command to post an XML string to the API endpoint. In this post XML request example, the 'Content-Type: application/xml' request header indicates that the request body contains an XML. The 'Accept: application/xml' request header tells the server that the client expects an XML. The XML is passed in the Curl -d command-line parameter.

GET XML Example
An example of getting an XML data from a website. The Accept: application/xml request header tells the server that the client expects an XML. The Content-Type: application/xml response header informs the client that the server returned an XML string.

Curl Command to GET an XML String
An example of a Curl command to get and an XML data from the API endpoint. The Accept: application/xml request header tells the server that the client expects an XML response. The Content-Type: application/xml response header informs the client that the server returned an XML string.

SOAP vs REST
SOAP and REST are known as two of the most common API paradigms. The key difference between SOAP and REST is the way they interact with the server.

SOAP API
SOAP is an XML-based messaging protocol specification that strictly defines an entire method of communication between the client and the server.