I use the following script which I found somewhere (can't remember where) and modified: https://gist.github.com/2894514
You can run it:
avahi_publish.py service1 service2
Then curl http://service1.local:8000/bla
It's linux only of course :)