In Aleph v20, I want to use the update-doc X-Service. I have a script set up to do this:
- HTTP GET xml from
/X?op=find-doc&base=BASE&doc_num=XXXXXXXXX - edit the xml
- HTTP POST the edited xml back to
/X?op=update-doc&base=BASE&doc_num=XXXXXXXXX&doc_action=UPDATE&user_name=USER&user_password=PASS&xml_full_req=EDITED_XML
Aleph always responds with:
<update-doc>
<session-id>SOME SESSION ID</session-id>
</update-doc>
i.e., no error messages, but no success message, either. It does the same thing when I send an invalid doc_action parameter. Is UPDATE an invalid doc_action parameter?
Has anyone made the update-doc service work?
PS I don't control (or know much about) the Aleph server configuration.
EDIT: The x-service user did not have sufficient privileges in the Aleph cataloging module. Once that was fixed by our Aleph server admin, the steps above worked properly (find-doc, edit the response, POST the edited response back to update-doc)