Use web service to transform XML in Oxygen Author

akheiljain
Posts: 24
Joined: Wed Nov 28, 2018 8:13 pm

Use web service to transform XML in Oxygen Author

Post by akheiljain » Mon Sep 14, 2020 6:59 pm

We would like to use a web service to HTTP POST the topic XML from Oxygen Author 20.1 and accept back via HTTP GET a pdf file attachment with MIME type of "application/pdf" and display it to user in Acrobat Reader DC.
I have looked through the forms and found a few suggestions to writing a java extension Plugin, figured I would ask, in case there is a suggested approach to accomplish this behavior.
Thanks in advance for any help.

Radu
Posts: 7154
Joined: Fri Jul 09, 2004 5:18 pm

Re: Use web service to transform XML in Oxygen Author

Post by Radu » Tue Sep 15, 2020 7:17 am

Hi,

Oxygen has Java APIs and you can create for it Java or Javascript-based plugins. The Javascript-based plugins use the Rhyno Javascript engine to interact with our Java API:

https://www.oxygenxml.com/doc/versions/ ... ugins.html

A plugin can add for example a toolbar, main menu or contextual menu action, it can also post via POST to a certain URL a certain content.
We have a bunch of Javascript-based sample plugins here:
https://github.com/oxygenxml/wsaccess-j ... le-plugins
for example we have a plugin which adds a contextual menu action in the Author visual editing mode:

https://github.com/oxygenxml/wsaccess-j ... AuthorPage

there is also a sample plugin which uses POST to send a zip file to a server:

https://github.com/oxygenxml/wsaccess-j ... ipToServer

The same thing can be done with a Java-based plugin, we have a sample Maven-based project here:

https://github.com/oxygenxml/sample-plu ... ace-access

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply