Esempio n. 1
0
        public GetAgreementListResponse getAgreementList(GetAgreementListRequest getAgreementListRequest)
        {
            try
            {
                Log.Info("Counterparty GetAgreementListRequest: " + (getAgreementListRequest == null ? "null" : getAgreementListRequest.ToString()));

                //var client = new GetCptyInfoService.CptyInfoClient();
                //var response = client.getAgreementList(request);

                var agreements = new Agreement[] { new Agreement("AgreementType1") };
                var response = new GetAgreementListResponse(agreements);

                Log.Info("Counterparty GetAgreementListResponse: " + (response == null ? "null" : response.ToString()));
                return response;
            }
            catch (Exception e)
            {
                Log.Error("Failed to process getAgreementList() service call", e);
                throw e;
            }

        }
 public GetAgreementListResponse(Agreement[] agreements)
 {
     this.agreements = agreements;
 }