Registry Manual REST API SPARQL SAWSDL BioMoby WSDL 1.1 Tutorial Contact Us

BioSWR provides simple REST API to interact with the Registry.

REST URL in relation to:
HTTP Method: REST method description:
/service/register?url=http://service.wsdl GET Register the WSDL description(either 1.1 or 2.0). WSDL 1.1 definitions are converted into WSDL 2.0 descriptors. Note that such conversion is not always possible while should work for most services (SOAP and REST). The Registry returns registered WSDL description. Returned description is complete in a sense that all external WSDL descriptors and XML Schemas are also stored in the Registry.
/service/register/? Register BioMOBY service by providing its Life Science Identifier. Several BioMOBY Registries are consulted to find a service definition.
/service GET Get a complete OWL/RDF ontology containing all registered services.
/service/{id} GET Get a Web service description by its ID.
ID of the registered service is a HEX encoded MD5 hash from the URL/LSID used for the service registration. Note that for BioMOBY services, method returns a WSDL as returned from BioMOBY Registry. It is possible to retrieve WSDL 2.0, OWL/RDF or WADL description providing HTTP "Accept" header with appropriate MIME type ("application/wsdl+xml", "application/rdf+xml" or "application/vnd.sun.wadl+xml").
DELETE* Deregister the service by its ID.
/service/deregister/{id} GET

* DELETE service operation requires an HTTP Basic authentication being provided. When DELETE service operation is executed from a Web browser, the browser automatically rises an authentication dialog. Programmatic usage is dependent from concrete language and API.
Here is an example how to perform DELETE operation from Java language:

URI uri = URI.create("http://localhost:8080/BioSWR/rest/service/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");

HttpURLConnection connection = (HttpURLConnection)uri.toURL().openConnection();
String credentials = "username:password";
connection.setRequestProperty("Authorization", "Basic " + DatatypeConverter.printBase64Binary(credentials.getBytes()));

InputStream input = connection.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(input));
try {
  String ln;
  while ((ln = reader.readLine()) != null) {
} catch(Exception ex) {
} finally {
Java code to deregister 'XXX' Web service