/*
 * $Id: OrderService.java 14078 2009-02-19 17:15:39Z aperepel $
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.example.bookstore;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

/** 
 * Interface for placing a book order 
 */
@WebService
public interface OrderService
{
    /** The order service will be accesible as a web service at this URL */
    static final String URL = "http://0.0.0.0:8777/services/order";

    /** Place a book order */
    @WebResult(name="order") 
    Order orderBook(@WebParam(name="book") Book book,
                    @WebParam(name="quantity") int quantity, 
                    @WebParam(name="address") String address,
                    @WebParam(name="email") String email);
}
