Library to Web Resource
Web Resource to Library Mapping
Some library functions reference web resources on SLIM CD’s server. These include .asp pages and ashx pages. There are two types of web resources:
- Pages that return specific Content-type
- GetReceipt.asp – upon success, returns text/plain
- GetSignatureImage.ashx – upon success, return image/png, image/jpg, etc.
Note that the above functions will set the HTTP STATUS CODE to 200 upon success and use other values to indicate errors, such as 400, 403, or 500.
- Pages that return XML
- SendReceipt.asp
- All “Session” functions, except ShowSession (which produces HTML)
Inside the libraries, SLIM CD places the above entry points in the most logical place for developers to locate them. Below are some examples:
1 2 3 4 5 |
Transact.GetReceipt Transact.SendReceipt Images.GetSignatureImage |
All calls to sessions functions will be placed in the Sessions class, as follows:
1 2 3 |
Sessions.CreateSession |
1 2 3 |
Sessions.CheckSession |
Note that ShowSession and MultiSession are not library calls, as these web resources should be used in the creation of URLs for use by browsers, webkits, web controls, etc. See the section on Secure Sessions for additional information.