コード例 #1
0
        public byte[] GetDealsheet(string pTradingSysCode, string pTradingSysKey, out string pDocType)
        {
            byte[] resultDoc = null;
            GetDocumentClient client = new GetDocumentClient(GET_DOCUMENT_ENDPOINT, urlStr);
            client.ClientCredentials.UserName.UserName = svcUserName;
            client.ClientCredentials.UserName.Password = svcPassword;

            GetDealSheetResponse response = new GetDealSheetResponse();
            GetDealSheetRequest request = new GetDealSheetRequest();
            request.tradingSystemCode = pTradingSysCode;
            request.tradingSystemKey = pTradingSysKey;
            response = client.getDealSheet(request);

            pDocType = response.objectFormatInd.ToString();
            resultDoc = response.objectStream;

            return resultDoc;
        }
コード例 #2
0
        public byte[] GetDealsheet(string pTradingSysCode, string pTradingSysKey, out string pDocType)
        {
            byte[]            resultDoc = null;
            GetDocumentClient client    = new GetDocumentClient(GET_DOCUMENT_ENDPOINT, urlStr);

            client.ClientCredentials.UserName.UserName = svcUserName;
            client.ClientCredentials.UserName.Password = svcPassword;

            GetDealSheetResponse response = new GetDealSheetResponse();
            GetDealSheetRequest  request  = new GetDealSheetRequest();

            request.tradingSystemCode = pTradingSysCode;
            request.tradingSystemKey  = pTradingSysKey;
            response = client.getDealSheet(request);

            pDocType  = response.objectFormatInd.ToString();
            resultDoc = response.objectStream;

            return(resultDoc);
        }