Controlling Tool Webservice in PHP