• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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