added codes to log inbound web service message as batch