Support for HTTP POST/PUT
Need extension functions / instructions in Saxon-JS to allow the stylesheet to generate XML files and post them back to the server using HTTP POST/PUT requests.
Possibly by implementing the EXPath HTTP module:
(We could also do with an implementation of this in server-side Saxon)
#1 Updated by Debbie Lockett over 1 year ago
- Status changed from New to In Progress
We are in the process of developing a solution for this.
Our idea is to add a new attribute called http-request allowed on an ixsl:schedule-action instruction. This attribute will take an expression which evaluates to an XDM map - representing the HTTP request. The response from the HTTP request will be passed back as the context item of the named template called within the ixsl:schedule-action instruction, as another XDM map.
This new ixsl:schedule-action/@http-request attribute will be available from 9.8. Changes to allow this (in IXSLScheduleAction and ISXLFunctionSet) have been committed on the 9.8 branch.
Implementation in Saxon-JS is work in progress.
#2 Updated by Debbie Lockett about 1 year ago
First implementation will be available with the next Saxon-JS release (using Saxon-EE 9.8 to generate SEF). Documentation has been added (including definitions for the request and response maps) - this will be updated online with the release.
Note that multipart requests and responses are not yet supported.
More thorough testing is needed.
#3 Updated by Debbie Lockett about 1 year ago
- Status changed from In Progress to Closed
- Applies to JS Branch 1.0 added
Closing this feature issue now. The initial implementation of ixsl:schedule-action/@http-request is available in the Saxon-JS 1.0.1 release (requires Saxon-EE 9.8 to generate the SEF).
Please register to edit this issue