The sample Order Web service offers a number of methods and is available for testing with
.NET Explorer at
http://demo.borland.com/OrderWebService/OrderService.asmx. The following methods are available:
- SearchArticles: Searches for articles by a name pattern.
- GetArticleByName: Searches for an article by the full name.
- GetArticleById: Searches for an article by its ID.
- CreateUser: Creates a new user in the database.
- Login: Logs in an existing user. The return value is the user ID that is needed for other method calls (store this return value
in a global variable).
- Logout: Logs the user out of the system.
- CreateOrder: Creates a new order for the currently logged in user.
- AddOrderItem: Adds an item to the order.
- GetOrder*: Returns information about an order.
All order related methods take the
userid as a header parameter. This is why you should store the user ID that is returned by the
Login method in a global variable and use the variable as input for all order-related methods.
Some of the methods may throw SOAP exceptions (for example, if you are not logged in and try to create an order).