added script to start webservice and fixed publisher code.