View Javadoc

1   /*
2    * $$Id: Bookstore.java 12221 2008-07-01 20:04:09Z dfeist $$
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.example.bookstore;
12  
13  import java.util.Collection;
14  
15  import javax.jws.WebParam;
16  import javax.jws.WebResult;
17  import javax.jws.WebService;
18  
19  @WebService
20  public interface Bookstore
21  {
22  long addBook(@WebParam(name="book") Book book);
23      
24      @WebResult(name="bookIds")
25      Collection<Long> addBooks(@WebParam(name="books") Collection<Book> books);
26      
27      @WebResult(name="books") 
28      Collection<Book> getBooks();
29      
30      void orderBook(@WebParam(name="bookId") long bookId, 
31                     @WebParam(name="address") String address,
32                     @WebParam(name="email") String email);
33  }
34  
35