I am getting soap errors when submitting a simple password change request to the Plesk API. I am running Plesk for Linux 9.5.2. From my understanding, the calls to the API don't even use SOAP yet we are getting this error...
SOAP-ERROR: Parsing WSDL: Couldn't load from 'AccountWebService.asmx?WSDL'
Here is a sample of what I am sending to the API when getting this error...
$packet = '<client>
<add>
<gen_info>';
if ($params["clientsdetails"]["companyname"]) $packet .= '<cname>'.$params["clientsdetails"]["companyname"].'</cname>';
$packet .= '<pname>'.$params["clientsdetails"]["firstname"].' '.$params["clientsdetails"]["lastname"].' '.$params["serviceid"].'</pname>
<login>'.$params["username"].'</login>
<passwd>'.$params["password"].'</passwd>
<status>0</status>
<phone>'.$params["clientsdetails"]["phonenumber"].'</phone>
<fax/>
<email>'.$params["clientsdetails"]["email"].'</email>
<address>'.$params["clientsdetails"]["address1"].'</address>
<city>'.$params["clientsdetails"]["city"].'</city>
<state>'.$params["clientsdetails"]["state"].'</state>
<pcode>'.$params["clientsdetails"]["postcode"].'</pcode>
<country>'.$params["clientsdetails"]["country"].'</country>';
if ($resellerid) $packet .= '<owner-id>'.$resellerid.'</owner-id>';
$packet .= '</gen_info>
<template-name>'.$params["configoption1"].'</template-name>
</add>
</client>';
SOAP-ERROR: Parsing WSDL: Couldn't load from 'AccountWebService.asmx?WSDL'
Here is a sample of what I am sending to the API when getting this error...
$packet = '<client>
<add>
<gen_info>';
if ($params["clientsdetails"]["companyname"]) $packet .= '<cname>'.$params["clientsdetails"]["companyname"].'</cname>';
$packet .= '<pname>'.$params["clientsdetails"]["firstname"].' '.$params["clientsdetails"]["lastname"].' '.$params["serviceid"].'</pname>
<login>'.$params["username"].'</login>
<passwd>'.$params["password"].'</passwd>
<status>0</status>
<phone>'.$params["clientsdetails"]["phonenumber"].'</phone>
<fax/>
<email>'.$params["clientsdetails"]["email"].'</email>
<address>'.$params["clientsdetails"]["address1"].'</address>
<city>'.$params["clientsdetails"]["city"].'</city>
<state>'.$params["clientsdetails"]["state"].'</state>
<pcode>'.$params["clientsdetails"]["postcode"].'</pcode>
<country>'.$params["clientsdetails"]["country"].'</country>';
if ($resellerid) $packet .= '<owner-id>'.$resellerid.'</owner-id>';
$packet .= '</gen_info>
<template-name>'.$params["configoption1"].'</template-name>
</add>
</client>';