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):
The above triggers the error
Work around is to omit the
Is this a bug or am missing out something?
Thanks!
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!