• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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