コード例 #1
0
        public GetConfirmationResponse getConfirmation(GetConfirmationRequest getConfirmationRequest)
        {
            try
            {
                Log.Info("GetDocument GetConfirmationRequest: " + (getConfirmationRequest == null ? "null" : getConfirmationRequest.ToString()));

                byte[] b = getFile("SampleConfirm.docx");

                var response = new GetConfirmationResponse(ObjectFormatInd.DOCX, true, b);

                Log.Info("GetDocument GetConfirmationResponse: " + (response == null ? "null" : response.ToString()));
                return response;
            }
            catch (Exception e)
            {
                Log.Error("Failed to process getConfirmation() service call", e);
                throw e;
            }
        }
コード例 #2
0
ファイル: GetDocument.svc.cs プロジェクト: GDuggi/DemoTest
        public GetConfirmationResponse getConfirmation(GetConfirmationRequest getConfirmationRequest)
        {
            try
            {
                Log.Info("GetDocument GetConfirmationRequest: " + (getConfirmationRequest == null ? "null" : getConfirmationRequest.ToString()));

                byte[] b = getFile("SampleConfirm.docx");

                var response = new GetConfirmationResponse(ObjectFormatInd.DOCX, true, b);

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