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

API Bugs / Issues

abdi

Platinum Pleskian
Hello Team,

I think there is a bug in the API particularly this section:

http://download1.parallels.com/Plesk/Doc/de-DE/online/plesk-api-rpc/index.htm?fileName=33852.htm

Apparently the code below triggers the error (below):
Code:
<packetversion="1.6.3.5">
<customer>
<add>
   <gen_info>
       <cname>LogicSoft Ltd.</cname>
       <pname>Stephen Lowell</pname>
       <login>stevelow</login>
       <passwd>Jhtr66fBB</passwd>
       <status>0</status>
       <phone>416 907 9944</phone>
       <fax>928 752 3905</fax>
       <email>[email protected]</email>
       <address>105 Brisbane Road, Unit 2</address>
       <city>Toronto</city>
       <state/>
       <pcode/>
       <country>CA</country>
   </gen_info>
</add>
</customer>
</packet>

The above triggers the error

Code:
Array
(
    [@attributes] => Array
        (
            [version] => 1.6.3.5
        )

    [system] => Array
        (
            [status] => error
            [errcode] => 1014
            [errtext] => Parser error: Request is invalid. Error in line 7: Element 'cname': This element is not expected. Expected is one of ( status, phone, fax, email, address, city, state, pcode, country, locale ).
        )
)

Work around is to omit the
Code:
<cname>LogicSoft Ltd.</cname>

Is this a bug or am missing out something?

Thanks!
 
Have you tried it with

<packet version="1.6.7.0">

?
 
Last edited:
Changing the packet version yields the same following error:
Code:
Array
(
    [@attributes] => Array
        (
            [version] => 1.6.7.0
        )

    [system] => Array
        (
            [status] => error
            [errcode] => 1014
            [errtext] => Parser error: Request is invalid. Error in line 7: Element 'cname': This element is not expected. Expected is one of ( status, phone, fax, email, address, city, state, pcode, country, locale ).
        )

)
 
Strange. I can't reproduce this issue on our test servers.
Maybe you have something wrong in your XSD schemas?

/usr/local/psa/admin/htdocs/schemas/rpc/plesk_client.xsd <xs:complexType name="clientAddGenInfo">
/usr/local/psa/admin/htdocs/schemas/rpc/<version>/plesk_client.xsd <xs:complexType name="clientAddGenInfo">
 
Back
Top