I want to write one function in the web service. So where should I write the server code and how to cal that function through client code in sugar crm 6?