Interacting with webservice on startup and user action
Posted: Wed May 20, 2009 2:05 pm
Hi there
I am looking for some advice on where to find documentation or examples to assist in my implementation of the following scenario.
I would like to start Oxygen XML Editor (I'm using a 10.x version) with a custom command line argument or system property or similar and have it load, on start-up, an XML file from a webservice, and at some later date commit a file back to a second webservice.
The scenario I want to support is as follows;
1) User selects a file from a website and clicks an edit button
2) Website invokes oxygen on the client machine using an applet
3) Applet invokes oxygen with custom parameters or system properties or something similar
4) Oxygen recognises the custom invocation and on starting up calls webservice 1
5) Webservice 1 supplies an XML file to oxygen
6) User edits XML file locally
7) User selects to save XML file back to webservice 2
Oxygen calls webservice 2 and sends edited XML file
I am comfortable creating the applet, and webservices to do whatever is required, however I have next to no knowledge about customising Oxygen. I have read the XML editor user manual, particularly Chapter 20, and also wandered around the Oxygen SDK Javadocs and exmaples, but am none the wiser.
I assume I need to implement a couple of plug-ins which will interact with the webservices; one invoked by oxygen on start up to download the XML file from the first webservice, and second plug-in invoked by a user action to send the edited XML to the second webservice. The plug-in development guide (http://www.oxygenxml.com/doc/ug-oxygen/ ... lugin.html) doesn't seem to give any advice on either of these activities, and I can't find any other appropriate documentation.
At a push I could get the applet to invoke the first webservice and download the XML file to a local directory then start Oxygen pointing at this local file, but this doesn’t help me with part 2, committing file back to webservice 2, and I would prefer to handle all of this inside Oxygen.
Any advice on where to go for further information would be greatly appreciated.
Thanks,
Simon.
I am looking for some advice on where to find documentation or examples to assist in my implementation of the following scenario.
I would like to start Oxygen XML Editor (I'm using a 10.x version) with a custom command line argument or system property or similar and have it load, on start-up, an XML file from a webservice, and at some later date commit a file back to a second webservice.
The scenario I want to support is as follows;
1) User selects a file from a website and clicks an edit button
2) Website invokes oxygen on the client machine using an applet
3) Applet invokes oxygen with custom parameters or system properties or something similar
4) Oxygen recognises the custom invocation and on starting up calls webservice 1
5) Webservice 1 supplies an XML file to oxygen
6) User edits XML file locally
7) User selects to save XML file back to webservice 2

I am comfortable creating the applet, and webservices to do whatever is required, however I have next to no knowledge about customising Oxygen. I have read the XML editor user manual, particularly Chapter 20, and also wandered around the Oxygen SDK Javadocs and exmaples, but am none the wiser.
I assume I need to implement a couple of plug-ins which will interact with the webservices; one invoked by oxygen on start up to download the XML file from the first webservice, and second plug-in invoked by a user action to send the edited XML to the second webservice. The plug-in development guide (http://www.oxygenxml.com/doc/ug-oxygen/ ... lugin.html) doesn't seem to give any advice on either of these activities, and I can't find any other appropriate documentation.
At a push I could get the applet to invoke the first webservice and download the XML file to a local directory then start Oxygen pointing at this local file, but this doesn’t help me with part 2, committing file back to webservice 2, and I would prefer to handle all of this inside Oxygen.
Any advice on where to go for further information would be greatly appreciated.
Thanks,
Simon.