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

Standards in XML API

Discussion in 'Plesk 9.x for Windows Issue, Fixes, How-To' started by Patrick M, Mar 9, 2009.

  1. Patrick M

    Patrick M Guest

    I am a new user of the Plesk API and I was struck by the problematic schema validations.

    One rather curious validation exception I got was because I reused the same code to generate the inner elements of a Client/add and a Client/set xml requests.

    When revising the schema, I understood that the exception was thrown because the sequence order was not respected:

    ADD: <hosting> comes before <limits>
    SET: <hosting> comes after <limits>

    Working around this situation involves making two specific routines for the two calls, not very pleasant when doing maintenance.

    Any ideas regarding this ?