Implementing XML RPC services

Added by mark schott almost 8 years ago

As There is no Web services in Redmine, What is the exact way if XML RPC services is to be implemented. The idea behind is to have functions which calls to internal methods of Redmine.

Replies (6)

RE: Implementing XML RPC services - Added by Felix Schäfer almost 8 years ago

The way redmine will provide a web API will be through REST, please see rest_api.

RE: Implementing XML RPC services - Added by mark schott almost 8 years ago

yes, but what about the existing implementation..they does not have any REST API. So for that case custom API is to be made to access internal functions from outside.

RE: Implementing XML RPC services - Added by Felix Schäfer almost 8 years ago

I'm not sure what you're getting at here… 0.9.0 is RESTified in parts, and I expect it won't take too long to get the rest there too, especially after the bunch of patches geared towards making authentication easier for webservice consumers. Do you need some other parts to be able through a webservice, or have I completely misunderstood you?

RE: Implementing XML RPC services - Added by mark schott almost 8 years ago

Felix Schäfer wrote:

I'm not sure what you're getting at here… 0.9.0 is RESTified in parts, and I expect it won't take too long to get the rest there too, especially after the bunch of patches geared towards making authentication easier for webservice consumers. Do you need some other parts to be able through a webservice, or have I completely misunderstood you?

Complete misunderstanding...I just want to do simple thing... AS of now There is no WEBSERIVES enable in stable version. I want to develop a simple XML RPC based web services, which will have functions containing call to internal APIs.

Exmple : XML RPC web serive Function

Def get_project( project_id ):
this function will call internal find method of PROJECT with argument project_id and return the result as XML RPC response.

RE: Implementing XML RPC services - Added by Felix Schäfer almost 8 years ago

Oh, it's not as if a little XML parsing on [[Rest_Projects#Listing-projects|GET /projects.xml]] will get you that, and that it will be available on the soon-to-be-realeased next version, but what do I know.

RE: Implementing XML RPC services - Added by Hubert Martin-Deidier almost 8 years ago

In fact there is somme functionalities accessible through a webservice since version 0.9.1 which is a stable version.
The problem is that this REST api is only partial and this is not possible to do many functions (add a comment, an attachment, ...).

I've made a plugin that use the actionwebservice plugin which is pretty easy to use. The problem is that since version 0.9.0 this plugin seems to be problematic because it generates errors and I don't know how to solve them.

In fact you have 3 solutions :
- Use the limited but existing REST Api
- Develop your own API using the REST Api of Rails through ActiveResource::Base (for client side) and ActionController::Resource (for server side)
- Help me to use actionwebservice with new version of redmine and I can give you some examples on how to use it.

A+

(1-6/6)