Ejemplo n.º 1
0
        private PROD_GenericDataAccess GetGDAService()
        {
            PROD_GenericDataAccess service = new PROD_GenericDataAccess();

            service.Url         = Url;
            service.Timeout     = Timeout;
            service.Proxy       = Proxy;
            service.Credentials = GetNetworkCredential();
            return(service);
        }
Ejemplo n.º 2
0
        /// <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));
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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));
        }
Ejemplo n.º 5
0
        /// <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());
        }