IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#45526 - 11/25/13 03:45 PM Post JSON data to RESTful web service
wags Offline
OL User

Registered: 06/07/11
Posts: 69
Loc: New York
First of all, I've had great success using the Soap Client Plug-in in workflow. I've been interested in connecting to some newer web services recently, and some of them only offer a REST API. Is there any talk of adding this kind of functionality somehow as an action plug-in in Workflow?

It would be awesome if I could build a JSON-formatted message to post to a specific web service (over SSL) and include the base-64 encoded data that makes up my document (a PDF).

Similar to the SOAP-based plug-in, I'd like to capture the response so that I can check for any errors and react accordingly.

Anyone else interested in this kind of thing? Thanks for your consideration!

Top
#45527 - 11/25/13 04:33 PM Re: Post JSON data to RESTful web service [Re: wags]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1984
Loc: Objectif Lune, Montreal, Qc
Yes, REST and JSON are alreay on our todo list. However, the good news is that you can already implement most of it through scripting, using the available Microsoft.XMLHTTP object.

Plenty of examples exist on the web to help you get started.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#45528 - 11/25/13 05:01 PM Re: Post JSON data to RESTful web service [Re: wags]
wags Offline
OL User

Registered: 06/07/11
Posts: 69
Loc: New York
Philippe, thanks for the info! I'm glad to hear it's on the radar and I'll be sure to look into how to do it via scripting in the meantime.

Top