SHARE
TWEET

Untitled

a guest Jun 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module corba2{
  2.    
  3.       struct Product{
  4.     long productId;
  5.     string productName;
  6.     long productQty;
  7.     long productPrice;
  8.       };
  9.  
  10.       struct Order{
  11.         long orderId;
  12.     Product product;
  13.       };
  14.     typedef sequence<Order> Cart;
  15.     typedef sequence<Product> ProductList;
  16.  
  17.  
  18.     interface CartInterface{
  19.       string createNewCart(out Cart cart);
  20.       long getCart(out Cart cart);
  21.       long addToCart(in Order order, out Cart cart);
  22.       long removeFromCart(in Order order, out Cart cart);
  23.       long completeOrder(out Cart cart);
  24.     };
  25.  
  26.     interface ShopInterface{
  27.     string createNewCart(out Cart cart);
  28.     long browseShop(out ProductList pList);
  29.     };
  30. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top