Is there any repository like UDDI for publishing and discovering RESTful web service?

397 Views Asked by At

I am a novice to web service repository and i want to discover REST based service matching a keyword phrase or some parameters. Is there any repository available like UDDI for SOAP services?

Here are the links where related topics have been discussed

1 How do I discover RESTful Web services?

2 publishing and discovering REST web services

but no where it has been explicitly described how to pursue this task(like a complete tutorial link where RESTFUL web service has been published and retrieved )

Hope to get a well explained answer

Thanks in advance !

2

There are 2 best solutions below

1
On BEST ANSWER

It's going to depend on what product are you using for discovery.

MDNS, try using JNDNS for Java. The method you want is probe and you'll have to listen for responses to the query for some predefined String that represents your endpoint. Sometimes people us DNS TXT records or SRV locators for the URL. Here's a good example

UDDI, specifically jUDDI (and 1 or two others) has a REST API that you can invoke. It works well if you know the 'key', or a unique identifier of the service. Since UDDI's data is complex, jUDDI has a FindEndpoints method which can return JSON or XML structures. HTTP GET to http://localhost:8080/juddiv3/services/inquiryRest/{XML,JSON}/endpointsByService/{id} The response is of type UriContainer, which is just a list of Strings, each representing a valid URL that you should be able to do something with. There's a few more examples in the TCK Tests for juddi here

1
On

repository solution can provide some facilities such as service discovery, event notification that a normal DBMS cannot.