Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module corba2{
- struct Product{
- long productId;
- string productName;
- long productQty;
- long productPrice;
- };
- struct Order{
- long orderId;
- Product product;
- };
- typedef sequence<Order> Cart;
- typedef sequence<Product> ProductList;
- interface CartInterface{
- string createNewCart(out Cart cart);
- long getCart(out Cart cart);
- long addToCart(in Order order, out Cart cart);
- long removeFromCart(in Order order, out Cart cart);
- long completeOrder(out Cart cart);
- };
- interface ShopInterface{
- string createNewCart(out Cart cart);
- long browseShop(out ProductList pList);
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement