Advertisement
simeonvarbanov

Untitled

Nov 24th, 2012
1,122
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module bank
  2. {
  3.     struct Account
  4.     {
  5.     long accountId;
  6.     double balance;
  7.     string name;
  8.     };
  9.  
  10.     typedef sequence <Account> accounts;
  11.  
  12.     interface Customer
  13.     {
  14.         boolean payIn(in double amount,in long accountId);
  15.         accounts getAccounts(in string name);
  16.     };
  17.  
  18.     interface Administrator
  19.     {
  20.         void createAccount(in double balance ,in string name);
  21.         boolean deleteAccounts(in long accountId);
  22.     };
  23.    
  24.     interface CustomerWS
  25.     {
  26.     double  getBalance(in long accountId);
  27.     boolean moveAmount(in long fromId,in long toId,in double amount);
  28.     };
  29. };
Advertisement
RAW Paste Data Copied
Advertisement