Project

Profile

Help

Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.

Feature #3004

closed

Support for HTTP POST/PUT

Added by Michael Kay about 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2016-10-21
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
1.0
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

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:

http://expath.org/modules/http-client/

(We could also do with an implementation of this in server-side Saxon)

Actions #1

Updated by Debbie Lockett over 7 years 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.

Actions #2

Updated by Debbie Lockett over 7 years 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.

Actions #3

Updated by Debbie Lockett about 7 years 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

Also available in: Atom PDF Tracking page