SOAP Message

SOAP message is XML-based data structured in a special way.

Each SOAP message is wrapped into the soap:Envelope tag and consists of header (<soap:header>..</soap:header>) and body (<soap:body>..</soap:body>) parts. Header is used by the integration API to identify a Plesk Sitebuilder user. Body contains attributes of a web service method.

A typical SOAP request can look as follows:

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header>

<CredentialsSoapHeader xmlns="http://swsoft.com/webservices/sb/4.5/SystemService">

<Login>admin</Login>

<Password>admin</Password>

</CredentialsSoapHeader>

</soap:Header>

<soap:Body>

<GetVersionApi xmlns="http://swsoft.com/webservices/sb/4.5/SystemService" />

</soap:Body>

</soap:Envelope>

 

A typical SOAP response can look as follows:

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:ns1="http://swsoft.com/webservices/sb/4.5/SystemService">

<SOAP-ENV:Body>

<ns1:GetVersionApiResponse>

<ns1:GetVersionApiResult>

<ns1:Major>4</ns1:Major>

<ns1:Minor>0</ns1:Minor>

<ns1:Build>2007062700</ns1:Build>

<ns1:Revision>23623</ns1:Revision>

</ns1:GetVersionApiResult>

</ns1:GetVersionApiResponse>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>