Howto register REST or other types of services?

sejensen's picture
Hi We are looking at the wso2 registry to use in our preferred SOA platform. But we cannot currently find out how to register services that are not based on SOAP and therefore not descriped by WSDL files. We would like to be able to lookup the endpoint for various rest services just like the api for this registry. Is this possible and how to do it? Kind regards Steffen
chathura c. ekanayake's picture

Hi Steffen, There are many

Hi Steffen, There are many approaches you can follow to support your scenario. A simplest method would be to add endpoints as a normal text resource (artifact) and tag them appropriately. Then you can lookup the endpoints by tags. I think the best approach would be to define a custom media type for rest services. Then you can enforce custom processing for rest services to validate endpoints, extract endpoint properties, automatically tag, etc. This allows you to look up services by their endpoint properties, tags, etc. This procedure requires you to write a plugin for registry called handler. More information about handlers with an example can be found in http://wso2.org/library/articles/extending-wso2-registry-handlers. Thanks, Chathura
pmhiten.gmail.com's picture

Hi Chathura, Do we still need

Hi Chathura, Do we still need to handle registering the REST services through custom media and custom handlers with "WSO2 3.0.3" version? From what I have read in the docs and observed in the 3.03 Management Console, is that it supports variety of message formats (XML, HTTP-REST, JSON in addition to SOAP). Is this just to document the meta-data for the service or it does support registering and managing the REST services ? Would highly appreciate any response on this. We are in middle of evaluating the multiple repository and registry solutions and the REST services support is becoming the decisive factor in our evaluation process. Thanks.
dimuthuc's picture

The fields in the services UI

The fields in the services UI helps you to catagorize services, from GReg 3.5 this will help you easy discover your services as well. As Chathura told you can define custom behaviours for services by writing handlers to your service media type. You can find samples for handles aspects cutomUIs which can be used to extend registry in the binray package. Thanks Dimuthu
pmhiten.gmail.com's picture

Thanks much. So, with the

Thanks much. So, with the current release (v 3.03), we can categorize the different REST services in the repository - however will not able to discover the REST services at runtime. Is this understanding correct ? Thanks again.
dimuthuc's picture

Yes. The coming release you

Yes. The coming release you can discover services manually or programmatically using the governance API. Thanks, Dimuthu
pmhiten.gmail.com's picture

Thanks

Thanks Dimuthuc !!
krishantha's picture

Guide to use discovery

Guide to use discovery feature is available at http://charithaka.blogspot.com/2010/04/ws-discovery-with-wso2-carbon.html Thanks Krishantha
maria.cristinaanghel.gmail.com's picture

This part I understand it,

This part I understand it, but anybody knows how rest services technology became a part of the Java EE 6 platform? Thanks in advance, Ioana Bucuresti
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)