• 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.

Creating an account?????

J

jeffm@

Guest
I am having a problem trying to create an account for site builder through php. I am using the same code as the example scripts given but am getting an error about the plan id.

Am I missing something obvious?

The error:
Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. ---> Incorrect plan Parameter name: planId in F:\devel.www\hosting\includes\classes\sitebuilder\sitebuilder_client.php:26 Stack trace: #0 [internal function]: SoapClient->__call('CreateAccount', Array) #1 F:\devel.www\hosting\includes\classes\sitebuilder\sitebuilder_client.php(26): Utils_SoapClient->CreateAccount(Object(SoapVar)) #2 {main} thrown in F:\devel.www\hosting\includes\classes\sitebuilder\sitebuilder_client.php on line 26

my code:
$serviceUrl = 'http://blahblah.com.au:2006/ServiceFacade/4.1/';
$serviceLogin = 'login';
$servicePassword = 'password';
$accountService = new Utils_SoapClient ( $serviceUrl . '/AccountWebService.asmx?WSDL', array () );
$accountService->setCredentialsHeader ( $serviceLogin, $servicePassword );

$struct = new stdClass ( );
$struct->username = 'user';
$struct->password = 'pwd';
$struct->firstName = 'john';
$struct->lastName = 'ofl';
$struct->email = '[email protected]';
$struct->role = 'SiteOwner';
$struct->planId = '30b07cc2-1bb3-4cec-922f-ba1b5ebe5981';
$struct->changePasswordAllowed = 'true';

$svar = new SoapVar ( $struct, SOAP_ENC_OBJECT );
$result = $accountService->CreateAccount ( $svar );

the svar:
SoapVar Object
(
[enc_type] => 301
[enc_value] => stdClass Object
(
[username] => user
[password] => pwd
[firstName] => john
[lastName] => ofl
=> [email protected]
[role] => SiteOwner
[planId] => 30b07cc2-1bb3-4cec-922f-ba1b5ebe5981
[changePasswordAllowed] => true
)

)
 
Back
Top