some code for wcf