View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.example.bookstore;
8   
9   import javax.jws.WebParam;
10  import javax.jws.WebResult;
11  import javax.jws.WebService;
12  
13  /** 
14   * Interface for placing a book order 
15   */
16  @WebService
17  public interface OrderService
18  {
19      /** The order service will be accesible as a web service at this URL */
20      static final String URL = "http://0.0.0.0:8777/services/order";
21  
22      /** Place a book order */
23      @WebResult(name="order") 
24      Order orderBook(@WebParam(name="book") Book book,
25                      @WebParam(name="quantity") int quantity, 
26                      @WebParam(name="address") String address,
27                      @WebParam(name="email") String email);
28  }