get_config function

Get the service configuration from the service object.