• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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