Suppose we need to use, custom hook in webservice
Add inside the this function saveEntityFromXml in the file WebserviceRequest.php
Before this line if $attributes->associations
Add if (strtolower($this->resourceConfiguration'retrieveData''className') == 'customer'){

Hook::exec('actionGpCustomerAccountAdd', array(
'newCustomer' => $object
));

}
These will return ($this->resourceConfiguration'retrieveData''className') name of the object.