public static DataSet QuerySubscriptionByESN_V2(String ESN)
        {
            wsdsService.wsMessageHeader = getHeader();
            SecurityHelper.prepareSoapContext(wsdsService.RequestSoapContext);


            WholesaleQuerySubscriptionV2Type qsRequest = new WholesaleQuerySubscriptionV2Type();
            DeviceInfoType deviceInfoType = new DeviceInfoType();



            deviceInfoType.serialNumber        = ESN;
            deviceInfoType.serialType          = DeviceSerialNumberTypeCodeType.E;
            deviceInfoType.serialTypeSpecified = true;

            qsRequest.Item = deviceInfoType;

            DataSet ds = new DataSet();

            try
            {
                // wsdsService.query
                WholesaleQuerySubscriptionV2ResponseType qsReply = wsdsService.WholesaleQuerySubscriptionV2(qsRequest);

                DataTable dtFeatures  = new DataTable();
                DataTable dtHistory   = new DataTable();
                DataTable dtPricePlan = new DataTable();
                if (qsReply.detailedServiceList != null)
                {
                    dtFeatures = Converter.ConvertToDataTable(qsReply.detailedServiceList);
                }
                if (qsReply.mdnList != null)
                {
                    dtHistory = Converter.ConvertToDataTable(qsReply.mdnList);
                }

                if (qsReply.pricePlanList != null)
                {
                    dtPricePlan = Converter.ConvertToDataTable(qsReply.pricePlanList);
                }

                ds.Tables.Add(dtHistory);
                ds.Tables.Add(dtPricePlan);
                ds.Tables.Add(dtFeatures);

                return(ds);
            }
            catch
            {
                throw;
            }
        }
        public static WholesaleQuerySubscriptionV2ResponseType QueryWholesaleSubscriptionV2(DeviceInfoType deviceInfoType)
        {
            try
            {
                wsdsService.wsMessageHeader = getHeader();
                SecurityHelper.prepareSoapContext(wsdsService.RequestSoapContext);

                WholesaleQuerySubscriptionV2Type qrsRequest = new WholesaleQuerySubscriptionV2Type();
                qrsRequest.Item = deviceInfoType;
                WholesaleQuerySubscriptionV2ResponseType qrsReply = wsdsService.WholesaleQuerySubscriptionV2(qrsRequest);

                return(qrsReply);
            }
            catch
            {
                throw;
            }
        }