Hello, in eSciDoc we have implemented a JAX-RS conform client to communicate with Fedora. I've heard that you wanted to release a new Fedora version 3.5 this week using CXF for the REST interface. In our CXF client, we implemented the methods:
@GET @Path("/objects/{pid}/datastreams") @Produces(MimeTypes.TEXT_XML) @Consumes(MimeTypes.TEXT_XML) ObjectDatastreamsTO listDatastreams(@NotNull @PathParam("") ListDatastreamsPathParam path, @NotNull @QueryParam("") ListDatastreamsQueryParam query); @GET @Path("/objects/{pid}/datastreams/infolist") @Produces(MimeTypes.TEXT_XML) @Consumes(MimeTypes.TEXT_XML) DatastreamProfilesTO listProfiles(@NotNull @PathParam("") ListDatastreamProfilesPathParam path, @NotNull @QueryParam("") ListDatastreamProfilesQueryParam query); As you can see, in JAX-RS it is not possible to decide, which type a method shall return depending on a query parameter. The types are generated from the XSDs datastreaminfolist.xsd (from Frank Asseg) and pidList.xsd. Basically, the server side definition of the REST service looks like this as well. I just wanted to show you, that without a new endpoint, there is no possibility to define a JAX-RS REST service, which decides, what type to return depending on a query parameter. Kind regards, Marko Voß ePublishing & eScience Development & Applied Research Phone +49 7247 808-744 Fax +49 7247 808-133 marko.v...@fiz-karlsruhe.de FIZ Karlsruhe - Leibniz Institute for Information Infrastructure Hermann-von-Helmholtz-Platz 1 76344 Eggenstein-Leopoldshafen, Germany www.fiz-karlsruhe.de<http://www.fiz-karlsruhe.de> [cid:image001.gif@01CC5CE8.7D12BD90] ------------------------------------------------------- Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische Information mbH. Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 101892. Geschäftsführerin: Sabine Brünger-Weilandt. Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.
<<inline: image001.gif>>
------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________ Fedora-commons-developers mailing list Fedora-commons-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers