public LicenseDetailsResponse GetLicenseDetails(LicenseDetailsRequest req)
        {
            try
            {
                LicenseServicesSoap LicenseSoap = new LicenseServicesSoapClient();
                var header = new ADPLicenseServiceReference.ADPSoapHeaderIn()
                {
                    UserName = username,
                    Password = password
                };
                var InnerReq = new GetLicenseDetailsRequest()
                {
                    UserID     = userId,
                    SystemCode = systemCode,

                    LicenseInfo = req.LicenseInfo.ConvetToLicenseKeyService()
                };
                var ObjReq = new getLicenseDetailsRequest1
                {
                    ADPSoapHeaderIn = header,
                    request         = InnerReq
                };

                var result = LicenseSoap.getLicenseDetails(ObjReq);

                if (result != null)
                {
                    return(result.getLicenseDetailsResult.ConvertToLicenseDetailsResponse());
                }
                else
                {
                    return(null);
                }
            }
            catch
            {
                return(null);
            }
        }
Example #2
0
 public LicenseDetailsResponse GetLicenseDetails(LicenseDetailsRequest req)
 {
     return(inquiry.GetLicenseDetails(req));
 }