• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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">john@nowhere.com</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