3.4 Test the Document

The final step is to test the document. To do this, text your internet domain name to the phone number DOTCOM (368266)--or to one of the the phone numbers DOTEDU (368338), DOTGOV (368468), DOTNET (368638), or DOTORG (368674) as appropriate. For example, to access the internet domain "example.com," text "example" to the phone number DOTCOM (368266). (Of course, you should substitute your actual internet domain name in place of "example," and you should text to the phone number corresponding to your actual top-level domain.) You should receive the response "Hello world!" Congratulations--you have implemented your own mobile service.

So how did it work? First, the system used the first word of the query "example" and the phone number DOTCOM (368266) through which the query was received to determine that the query should be routed to example.com. Next, the system retrieved the file index.cmrl from example.com. Finally, the system compared the remainder of the query (i.e. everything after "example," which in this case was an empty string) against the match patterns specified in the file index.cmrl in order to resolve the query. In this case, there was only one match pattern specified in the file index.cmrl--the default match pattern--which resolved to the message "Hello world!" returned by the system.