是否有像 UDDI 这样的存储库用于发布和发现 RESTful Web 服务?
Is there any repository like UDDI for publishing and discovering RESTful web service?
我是网络服务存储库的新手,我想发现与关键字短语或某些参数匹配的基于 REST 的服务。有没有像 UDDI 这样的 SOAP 服务的存储库?
这是 link 讨论相关主题的地方
1 How do I discover RESTful Web services?
2 publishing and discovering REST web services
但没有明确描述如何执行此任务(例如完整教程 link,其中 RESTFUL 已发布和检索 Web 服务)
希望得到解释清楚的答案
提前致谢!
这将取决于您使用什么产品进行发现。
MDNS,尝试使用 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,特别是 jUDDI(以及其他一两个)有一个可以调用的 REST API。如果您知道 'key' 或服务的唯一标识符,它会很好地工作。由于UDDI的数据比较复杂,jUDDI有一个FindEndpoints方法可以return JSON 或者XML结构。 HTTP GET 到 http://localhost:8080/juddiv3/services/inquiryRest/{XML,JSON}/endpointsByService/{id}
响应类型为 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
存储库解决方案可以提供一些功能,如服务发现、事件通知等普通 DBMS 无法提供的功能。
我是网络服务存储库的新手,我想发现与关键字短语或某些参数匹配的基于 REST 的服务。有没有像 UDDI 这样的 SOAP 服务的存储库?
这是 link 讨论相关主题的地方
1 How do I discover RESTful Web services?
2 publishing and discovering REST web services
但没有明确描述如何执行此任务(例如完整教程 link,其中 RESTFUL 已发布和检索 Web 服务)
希望得到解释清楚的答案
提前致谢!
这将取决于您使用什么产品进行发现。
MDNS,尝试使用 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,特别是 jUDDI(以及其他一两个)有一个可以调用的 REST API。如果您知道 'key' 或服务的唯一标识符,它会很好地工作。由于UDDI的数据比较复杂,jUDDI有一个FindEndpoints方法可以return JSON 或者XML结构。 HTTP GET 到 http://localhost:8080/juddiv3/services/inquiryRest/{XML,JSON}/endpointsByService/{id} 响应类型为 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
存储库解决方案可以提供一些功能,如服务发现、事件通知等普通 DBMS 无法提供的功能。