Rational Test Control Panel examples

Web service examples

Calculator

A simple calculator service offering add, subtract, multiply, divide and modulus

Calculator WSDL

Echo

A simple echo service that sends the supplied string back again

Echo WSDL

Login

A simple login service that returns a unique token from all login attempts, does not verify the user name or password supplied

Login WSDL

REST examples

Phone Book

A simple REST based phone book service:

Method URL Description
GET examples/phonebook/ List all the phone book entries, supports the following optional query parameters:
  • title
  • firstname
  • lastname
GET examples/phonebook/{id} Get a phone book entry for the supplied ID (ID matches with the ID field from the general query above)
POST examples/phonebook/ Create a new phone book entry, XML should conform to that returned from the GET call above
PUT examples/phonebook/{id} Update the entry to be the values supplied to this PUT call.
DELETE examples/phonebook/{id} Remove this entry from the phone book