int RecordingBindingService::GetRecordingJobConfiguration(_trc__GetRecordingJobConfiguration *trc__GetRecordingJobConfiguration, _trc__GetRecordingJobConfigurationResponse *trc__GetRecordingJobConfigurationResponse) 
{
	std::cout << __FUNCTION__ << std::endl;
	ServiceContext* ctx = (ServiceContext*)this->soap->user;
	
	auto it = ctx->m_devices.find(trc__GetRecordingJobConfiguration->JobToken);
	if (it != ctx->m_devices.end())
	{
		trc__GetRecordingJobConfigurationResponse->JobConfiguration = ctx->getRecordingJobConfiguration(this->soap, it->first);
	}
	return SOAP_OK;
}
int RecordingBindingService::GetRecordingJobs(_trc__GetRecordingJobs *trc__GetRecordingJobs, _trc__GetRecordingJobsResponse *trc__GetRecordingJobsResponse) 
{
	std::cout << __FUNCTION__ << std::endl;
	ServiceContext* ctx = (ServiceContext*)this->soap->user;
	
	for (auto it: ctx->m_devices) 
	{		
		trc__GetRecordingJobsResponse->JobItem.push_back(soap_new_tt__GetRecordingJobsResponseItem(this->soap));
		trc__GetRecordingJobsResponse->JobItem.back()->JobToken = it.first;	
		trc__GetRecordingJobsResponse->JobItem.back()->JobConfiguration	= ctx->getRecordingJobConfiguration(this->soap, it.first);
	}
	
	return SOAP_OK;
}