This demo shows how to use variable substitution in the service source URLs.
See the config.xml and common.php files in the samples/servicevarsubs directory for an example.