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