Exemple #1
0
        public getCardsResponse GetCards()
        {
            GetCardsClientService client   = new GetCardsClientService();
            getCardsRequest       request  = TestData();
            getCardsResponse      response = new getCardsResponse();

            // for SOAP
            //response = client.SoapClient(request);
            //Assert.IsNotNull(response);

            // for REST
            response = client.RestClient(Constants.GET_CARDS_URL, TestData());

            return(response);
        }
        private getCardsResponse GetCards(string msisdn)
        {
            GetCardsClientService client   = new GetCardsClientService();
            getCardsResponse      response = null;
            getCardsRequest       request  = null;

            GetCardsRequestFactory factory = new GetCardsRequestFactory();

            factory.request.msisdn = msisdn;

            try
            {
                request  = factory.Build();
                response = client.OptionalRequest(MySession.Current.requestFilter, request);
                return(response);
            } catch (Exception ex)
            {
                ShowMessage(ex.Message);
                return(null);
            }
        }