HW18: Chapter 18

18.4 Define an interface specification for the Currency Converter and Check credit rating services shown in Figure 18.7

In this case we are talking about a programmatic web service interface which defines the data available and how it can be accessed and used.

Currency Converter

Operation Inputs Outputs Exceptions
ConvertCurrency curIn Original Currency, New Currency, Amount curOut New Amount, New Currency curFault Invalid Amount, Invalid Currency Type
ListCurrency numIn Maximum number numOut URL of page with list of valid currency types up to maximum number listFault Maximum number must be a positive integer
SearchCurrency searchIn Currency Type searchOut URL of page with search results searchFault Invalid currency type

Check Credit Rating Services

Operation Inputs Outputs Exceptions
ListRatingServices numIn Maximum number numOut URL of page with list of valid rating services up to maximum number listFault Maximum number must be a positive integer
CheckCreditRating credIn Social Security, Rating Service code credOut URL of page with Credit Rating score and how that compares to rest of population curFault Invalid social security, Invalid rating service code

Post a comment

You may use the following HTML:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>