private PROD_GenericDataAccess GetGDAService() { PROD_GenericDataAccess service = new PROD_GenericDataAccess(); service.Url = Url; service.Timeout = Timeout; service.Proxy = Proxy; service.Credentials = GetNetworkCredential(); return(service); }
/// <summary> /// Permanently deletes data-objects from the server. /// </summary> /// <param name="uid">List of data-object identifiers for deletion.</param> /// <returns>Server response containing the results of the operation.</returns> public DeleteDataResult DeleteData(string[] uid) { PROD_GenericDataAccess service = GetGDAService(); return(service.DeleteData(uid)); }
/// <summary> /// Retrieves data-objects from the service. /// </summary> /// <param name="query">Request for the retrieval of different data-object kinds.</param> /// <returns>The response of the service containing the results of the operation.</returns> public AbstractObject GetData(GetDataQuery query) { PROD_GenericDataAccess service = GetGDAService(); return(service.GetData(query).abstractDataObject); }
/// <summary> /// Uploads data-objects to the service /// </summary> /// <param name="abstractDataObject">List of data-objects to upload to the service.</param> /// <param name="options">List of options passed to the server.</param> /// <returns>Server response containing results of the operation.</returns> public PutDataResult[] PutData(AbstractObject abstractDataObject, NameValuePair[] options) { PROD_GenericDataAccess service = GetGDAService(); return(service.PutData(abstractDataObject, options)); }
/// <summary> /// Retrieves information about the particular service capabilities. /// </summary> /// <returns>Information describing the capabilities of the service, like different supported kinds, operations, identification mechanisms, etc.</returns> public GenericDataAccessCapabilities GetCapabilities() { PROD_GenericDataAccess service = GetGDAService(); return(service.GetCapabilities()); }