public ReceiptExternal InsertCorrespondence(InsertCorrespondenceShipment shipment)
        {
            var client = GenerateProxy(shipment);

            OperationContext = _context + "InsertCorrespondence";
            return(client.InsertCorrespondenceEC(shipment.Username, shipment.Password, shipment.SystemUserCode, shipment.ExternalShipmentReference, shipment.InsertCorrespondence));
        }
Example #2
0
 public CorrespondenceAgencyForm()
 {
     InitializeComponent();
     MyCollectionEditor.MyFormClosed += MyCollectionEditor_MyFormClosed;
     _caepFunc = new CorrespondenceAgencyEndPointFunction();
     _caepFunc.ReturnMessageXml += ReturnMessageXmlHandler;
     ShipmentTest  = new BaseShipment();
     Notifications = new NotificationBEList();
     ShipmentIc    = new InsertCorrespondenceShipment {
         InsertCorrespondence = new InsertCorrespondenceV2()
     };
     ShipmentIc.InsertCorrespondence.Notifications = Notifications;
     ShipmentIc.InsertCorrespondence.ReplyOptions  = new CorrespondenceInsertLinkBEList();
     ShipmentIc.InsertCorrespondence.Content       = new ExternalContentV2 {
         Attachments = new AttachmentsV2()
     };
     GchShipment = new GetCorrespondenceStatusHistoryShipment();
     GcdShipment = new GetCorrespondenceStatusDetailsShipment();
     _gchResult  = new CorrespondenceStatusHistoryResultEx();
     // InvokeAssignTypeDescriptor(this.GetType());
     SetUpObjForPropGrid();
 }