1   /*
2    * $Id: BackOfficeImplBindingImpl.java 8077 2007-08-27 20:15:25Z aperepel $
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.test.usecases.axis;
12  
13  public class BackOfficeImplBindingImpl implements org.mule.test.usecases.axis.BackOfficeImpl
14  {
15      // Doc Lit test
16      public SubmitTradeResponse submitTrade(SubmitTrade parameters)
17      {
18          TradeStatus ts = new TradeStatus();
19          Trade trade = parameters.getArg0();
20          ts.setTradeID(trade.getTradeID());
21          ts.setStatus("RECEIVED");
22          SubmitTradeResponse str = new SubmitTradeResponse(ts);
23          return str;
24      }
25  
26      // RPC Enc test
27      public TradeStatus submitTrade(Trade trade)
28      {
29          TradeStatus ts = new TradeStatus();
30          ts.setTradeID(trade.getTradeID());
31          ts.setStatus("RECEIVED");
32          return ts;
33      }
34  
35      // Wrapped Lit test
36      public TradeStatus submitTrade(int accountID, String cusip, int currency, int tradeID, int transaction)
37      {
38          Trade trade = new Trade();
39          trade.setAccountID(accountID);
40          trade.setCusip(cusip);
41          trade.setCurrency(currency);
42          trade.setTradeID(tradeID);
43          trade.setTransaction(transaction);
44  
45          TradeStatus ts = new TradeStatus();
46          ts.setTradeID(trade.getTradeID());
47          ts.setStatus("RECEIVED");
48          return ts;
49      }
50  
51  }