create test code for webservice