added code to call service to php