Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IDL 0.64 KB | None | 0 0
  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. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement