Integrate with Rest Services

Are you missing a feature? Request its implementation here.
kbraaja
Posts: 2
Joined: Tue Dec 23, 2014 9:49 pm

Integrate with Rest Services

Post by kbraaja »

Can any one give me a sample code in integrating with REST services..?

I have a requirement to work with Cassandra database.. Cassandra DB exposes listing, reading, writing through a REST services. How do we make listing documents from the REST services ..?

Appreciate your help.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Integrate with Rest Services

Post by sorin_ristache »

What kind of sample code? In what language?

Where and how would you call that code in the Oxygen application?
Regards,
Sorin

<oXygen/> XML Editor Support
kbraaja
Posts: 2
Joined: Tue Dec 23, 2014 9:49 pm

Re: Integrate with Rest Services

Post by kbraaja »

Java is language. Below is what we are doing, please provide is anything is available to use for us.

In our requirement, we have REST services created that will give us list of file names, and when a user click a file name, will read the file via another REST service, and when saving a document, gets saved via third REST service.

So, based on this, we are developing a custom plugin to integrate with workspace.. Right now, we have developed custom protocol plugin to read the file (Streaming from REST). WE made a JAR and deployed inside plugin folder, but when we start oxygen application we are getting exception - java class not found for the protocolURLhandler ..but they are available in the JAR. Though plugin.xml have them configured..

Two classes are created - CassandraProtocolHandler and CassandraProtocolURLHandlerExtension. Do i miss anything here?
alex_jitianu
Posts: 1017
Joined: Wed Nov 16, 2005 11:11 am

Re: Integrate with Rest Services

Post by alex_jitianu »

Hello,

I got the chance to look at the plugin package you sent on the support list. The package is not correct. Please make sure to create it using the Run as->Maven install action from the project contextual menu in Eclipse. The package is created inside the target folder and it's named in this manner *-plugin.jar.

Best regards,
Alex
Post Reply