Listing 1 defines a simple shopping cart Web service that allows the shopper to add, remove, and query items in the cart.
清单1定义了一个简单的购物车Web服务,它允许顾客在购物车中添加、删除和查询商品条目。
The Web service also accepts a sales tax rate argument besides the shopping cart information, which is an XML document containing the product IDs and their respective quantities.
除了购物车信息,Web服务还接受销售税率参数,购物车信息为一个包含产品ID及各自数量的XML文档。
The CartWrapperService component has its own concern — combining all services to a complete shopping cart (for example, it could also include calls to a pricing service).
Cart WrapperService组件也有它自己的相关因素——把所有的服务合并成一个完整的购物车(例如,它还可以包括对价格服务的调用)。
应用推荐