public UploadFileStreamedResult UploadFileStreamed(UploadFileStreamedShipment shipment)
        {
            var client = GenerateProxy(shipment, false);

            UploadFileStreamedResult receipt = new UploadFileStreamedResult();

            using (FileStream fs = new FileStream(shipment.FilePath, FileMode.Open))
            {
                OperationContext = "UploadFileStreamed";
                client.UploadFileStreamedEC(shipment.FileName, shipment.Password, shipment.FileReference, shipment.Reportee, shipment.Username, fs,
                                            out receipt._ParentReceiptId, out receipt._ReceiptHistory, out receipt._ReceiptId, out receipt._ReceiptStatusCode, out receipt._ReceiptText, out receipt._ReceiptTypeName);
            }

            return(receipt);
        }
        public BrokerServiceFormEC2()
        {
            InitializeComponent();
            _brokerServiceEpFunc = new BrokerServiceEndPointFunctionEC2();
            _brokerServiceEpFunc.ReturnMessageXml += ReturnMessageXmlHandler;

            _brokerServiceStreanedEpFunc = new BrokerServiceStreamedEndPointFunctionEC2();
            _brokerServiceStreanedEpFunc.ReturnMessageXml += ReturnMessageXmlHandler;

            ShipmentTest = new BaseShipment();
            InitiateBrokerServiceShipment = new InitiateBrokerServiceShipmentEC2();
            GetAvailableFilesShipment     = new GetAvailableFilesShipmentEC2();
            UploadFileStreamedShipment    = new UploadFileStreamedShipment();
            DownloadFileStreamedShipment  = new DownloadFileStreamedShipment();

            UploadFileStreamedReceiptResult = new UploadFileStreamedResult();

            SetupObjForPropertyGrid();
        }