Quote of the Day


The Quote of the Day filter is a useful test utility for returning a simple SOAP response to a client. The API Gateway wraps the quote in a SOAP response, which can then be returned to the client.


Simply enter the quote in the Quotes text area. This quote can be returned in a SOAP response to the client by setting the Reflect filter to be the successor of this filter in the policy.

The Quote of the Day filter can also load a file containing a list of quotes at runtime. In this case, a random quote from the file will be returned to the client in the SOAP response. Each quote should be delimited by a % character on a new line. This is analogous to the BSD fortune format. The format of this file is shown in the following example:

Most powerful is he who has himself in his own power.
All science is either physics or stamp collecting.
A cynic is a man who knows the price of everything and the value of nothing.
Intellectuals solve problems; geniuses prevent them.
If you can't explain it simply, you don't understand it well enough.

The quotes can, of course, be simply entered in this format into the Quotes textarea to achieve the same goal.

The following example shows a SOAP response returned by the API Gateway to a client who requested the Quote of the Day service:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> 
  <s:Body xmlns:oracle="www.oracle.com">
      Every cloud has a silver lining