https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43674

--- Comment #23 from Lisette Scheer <[email protected]> ---
Created attachment 207342
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207342&action=edit
Bug 43674: Wrap ISO 18626 messages in the ISO18626Message envelope

ISO 18626 requires every message to be wrapped in an ISO18626Message
element, in the ISO 18626 namespace, with a version attribute. Koha sent
and expected the bare message, so schema-conformant partners rejected it.

Koha now wraps outgoing messages and unwraps incoming ones. Unwrapped
messages are still accepted.

Test plan:
1) Apply patch and restart_all
2) Enable the ILLModule system preference
3) Run:
   curl -s -X POST http://localhost:8081/api/v1/public/ill/iso18626 \
     -H "Content-Type: application/xml" \
     -d '<ISO18626Message xmlns="http://illtransactions.org/2013/iso18626";
xmlns:ill="http://illtransactions.org/2013/iso18626";
ill:version="1.2"><request><header><requestingAgencyRequestId>1</requestingAgencyRequestId></header></request></ISO18626Message>'
4) Note the response is wrapped in <ISO18626Message ... ill:version="1.2">
   (the BadlyFormedMessage errors are expected, the request above is
deliberately minimal)
5) prove t/db_dependent/Koha/ILL/ISO18626.t
t/db_dependent/api/v1/iso18626/request.t

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Phan Quang Minh <[email protected]>
Signed-off-by: Lisette Scheer <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to