private DHLRequest <T> GetRequest <T>() where T : new() { var _req = new DHLRequest <T>(); if (_req.Header == null) { _req.Header = new Entities.Misc.DHLHeader(); } if (_req.Header.Authentification == null) { _req.Header.Authentification = new Entities.Misc.Authentification(); } if (string.IsNullOrEmpty(_req.Header.Authentification.user)) { _req.Header.Authentification.user = UserID; } if (string.IsNullOrEmpty(_req.Header.Authentification.signature)) { _req.Header.Authentification.signature = UserSingature; } return(_req); }
/// <summary> /// Returns WEb service version /// </summary> /// <returns>Response</returns> public DHLGetVersionResponse GetVersion() { var request = new DHLRequest <DHLGetVersionRequest>(); return(this.Send <DHLResponse <DHLGetVersionResponse> >(request).Body); }