getWebServiceData function

Function to return data from web services