A brief intermission

Before we get into the SOAP web service implementation, we need to complement the applications to execute a seat query using the existing REST web service and display the results on the query page. Once this is done, we can pick up from there and develop our SOAP service. So, to get this done, follow these steps:

  1. Open ExhibitionBean of the Theater project, add a method that will receive the exhibition ID chosen by the user, and return a list of seat types that are linked to that specific exhibition:
    @GET @Path("{id}/seats") @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON }) public List<Seat> getSeatsByExhibition( @PathParam("id") int id) { String jpql = "SELECT s FROM Seat s, Exhibition e " + "WHERE (s.room.id ...

Get Getting Started with Oracle WebLogic Server 12c: Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.