Unless you change the URL, you're still using the variables.
You don't "publish to a variable", but rather you publish data (which can be a variable) or you request data that's been assigned to a variable.
Publish = push
Variables = pull
Have a look at this tutorial: Tutorial: Getting Started with Spark.publish() - #27 by bko