Opened 10 years ago

Closed 10 years ago

#1797 closed enhancement (fixed)

Deprecate web services

Reported by: Nicklas Nordborg Owned by:
Priority: major Milestone: BASE 3.3
Component: webservices Version:
Keywords: Cc:

Description (last modified by Nicklas Nordborg)

The web services implementation that is included with the BASE core is not very useful. Basically it is only possible to list experiments and download some data files. And this is not particularly easy to implement on the client side.

If someone need web-services-like support it is probably better to develop a separate extension with a JSON-like API to access BASE.

Scheduled for actual removal in BASE 3.4 (see #1798)

Change History (5)

comment:1 by Nicklas Nordborg, 10 years ago

Description: modified (diff)

comment:2 by Nicklas Nordborg, 10 years ago

Resolution: fixed
Status: newclosed

(In [6434]) Fixes #1797: Deprecate web services

comment:3 by Nicklas Nordborg, 10 years ago

Resolution: fixed
Status: closedreopened

All those deprecated classes caused a several problems:

  • Lots of compiler warnings about using the deprecated classes. Seems like this happens not only in those places that directly use the deprecated classes, but also in places that use classes that use the deprecated classes (grrr).
  • Generating the WSDL files fails with a stacktrace:
BUILD FAILED
D:\Eclipse\Workspace\trunk\build.xml:1029: The following error occurred while executing this line:
D:\Eclipse\Workspace\trunk\build.xml:1050: java.lang.NoClassDefFoundError: javax/ws/rs/Produces
	at org.apache.axis2.jaxrs.JAXRSUtils.getClassModel(JAXRSUtils.java:53)
	at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:272)
	at org.apache.axis2.description.AxisService.createService(AxisService.java:2501)
	at org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:248)
	at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.generate(Java2WSDLCodegenEngine.java:60)
	at org.apache.axis2.tool.ant.Java2WSDLTask.execute(Java2WSDLTask.java:283)
...

comment:4 by Nicklas Nordborg, 10 years ago

(In [6435]) References #1797: Deprecate web services

Most compilation warnings disappeared by not 'import'-ing the deprecated classes but using fully qualified class names instead. The rest of the warnings disappeared by adding @SuppressWarnings("deprecation") to the class definitions. This should be removed once the web services has been removed in #1798.

The WSDL generation issue was solved by adding jsr311-api.1.0.jar which contains the missing class. Seems like adding @Deprecated annotations to the web service classes triggered some extra checks which needed some more classes.

comment:5 by Nicklas Nordborg, 10 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.