View Javadoc

1   /*
2    * $Id: OrderServiceImpl.java 19418 2010-09-08 07:22:48Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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 javax.jws.WebService;
14  
15  /**
16   * Service for placing a book order.
17   * @see OrderService
18   */
19  @WebService(serviceName="OrderService", endpointInterface="org.mule.example.bookstore.OrderService")
20  public class OrderServiceImpl implements OrderService
21  {
22      public Order orderBook(Book book, int quantity, String address, String email)
23      {
24          System.out.println("Order has been placed for book: " + book.getTitle());
25          return new Order(book, quantity, address, email);
26      }
27  }