• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Api

J

jtrooney

Guest
Hey guys, I just purchased Sitebuilder 3.0.2 for linux and am having a hell of a time trying to mess with the api. I found some WebServices under http://site/ServiceFacade/SystemWebService.asmx?WSDL

but cannot find any docs on it and keep getting an error when trying to query it via soap:
Array ( [faultcode] => ERROR_NO_AUTH_HEADER [faultstring] => Auth header is missed. [faultactor] => [detail] => )


Anyone have any docs on these webservices?

Thanks.
 
you need to supply user credentials (login and password) in SOAP header of the request.

Here's an example of raw xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <soap:Header>
    <namesp1:CredentialsSoapHeader xmlns:namesp1="http://swsoft.com/SiteBuilder/AccountService/v_3_2">
      <Login xsi:type="xsd:string">admin</Login>
      <Password xsi:type="xsd:string">admin</Password>
    </namesp1:CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <CreateAccountWithNewPlan xmlns="http://swsoft.com/SiteBuilder/AccountService/v_3_2">
      <username xsi:type="xsd:string">test</username>
      <password xsi:type="xsd:string">test</password>
      <firstName xsi:type="xsd:string">john</firstName>
      <lastName xsi:type="xsd:string">doe</lastName>
      <email xsi:type="xsd:string">[email protected]</email>
      <role xsi:type="xsd:string">Reseller</role>
    </CreateAccountWithNewPlan>
  </soap:Body>
</soap:Envelope>

take a look at my post here: http://forum.swsoft.com/showthread.php?s=&postid=173710#post173710
 
Thanks caustic, I actually ran into your post shortly after I posted in the forum. I had a hell of a time trying to find any documentation about the SiteBuilder API for linux, only thing I found was something about remote_admin which looks to be an old post API. I guess I'll just follow the windows docs as so far they seem to work just fine.

Thanks.
 
I guess I'll just follow the windows docs as so far they seem to work just fine.
AFAIK SiteBuilder for Windows and SiteBuilder for Linux share the same API so that should be fine.
 
Back
Top