1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Expand 1.0.2 error passing Server OS

Discussion in 'Plesk Expand 2.0 and Legacy General Discussion' started by mbAndy, Dec 6, 2004.

  1. mbAndy

    mbAndy Guest

    Anybody used the API to select a server os by passing the os name in? Getting an error, but the XML seems to follow the documentation. This is XML Im passing in (formatted for easier reading) and below is the error:
    <?xml version="1.0" encoding="UTF-8"?>
                    <packet version="">
    				<pname>Uktest Account</pname>
    				<address>133 My Street</address>

    Cannot parse packet - invalid XML or DOM error. Error at file 'stream', line 6, column 73: Element 'server_os' is not valid for content model: '((gen_info,limits,tmpl_id),(server_id|((server_auto,server_keyword),server_os)))'

    Works fine if I pass server_id in <server_id>2</server_id> instead of server_os at the same level.

    Ive also tried several os options. This one seems to be valid at least.