SCC_SC_GETITEM
This service operation retrieves a particular item from the shopping cart for a user, based on an index number. The index number is a numeric value that represents the position of an item in the cart.
A user interface can send the index number as a request parameter to this service operation. The service operation then uses the index number to retrieve the appropriate item from the cart. The operation first validates the index number and then retrieves the item only if it is a valid index number. If index number is not valid, the operation sends back an error message to the user interface stating that the index number is invalid.
For instance, if the index number in the request message passed to this service operation is greater than the number of items in the cart, then an error message is sent back to the user interface.
Example: A student wants to review details of a specific class that he or she had previously added to the enrollment shopping cart. To review the class details, the student clicks the class number link. In such a case, the enrollment shopping cart feature uses the SCC_SC_GETITEM operation to retrieve the details of the particular class.
The user interface could initially use the SCC_SC_GETCART operation to display only the basic information (for example, Class Nbr) for all the cart items (academic classes). To get more information about the classes, the student can click any class number. When the student clicks a class number, the user interface can use the SCC_SC_GETITEM operation to retrieve and display the complete information for that item.