public ReceiptExternal InsertCorrespondence(InsertCorrespondenceShipmentAEC shipment) { var client = GenerateProxy(shipment); OperationContext = Context + "InsertCorrespondence"; return(client.InsertCorrespondenceAECV2(shipment.ExternalShipmentReference, shipment.InsertCorrespondence)); }
public CorrespondenceAgencyNoSystemForm() { InitializeComponent(); InitializeComponent(); caepFunc = new CorrespondenceAgencyNoSystemEndPointFunction(); caepFunc.ReturnMessageXml += ReturnMessageXmlHandler; ShipmentTest = new BaseShipment(); ShipmentIC = new InsertCorrespondenceShipmentAEC { InsertCorrespondence = new InsertCorrespondenceV2() }; ShipmentIC.InsertCorrespondence.SdpOptions = new SdpOptions(); Notifications = new NotificationBEList(); ShipmentIC.InsertCorrespondence.Notifications = Notifications; ShipmentIC.InsertCorrespondence.ReplyOptions = new CorrespondenceInsertLinkBEList(); ShipmentIC.InsertCorrespondence.Content = new ExternalContentV2(); ShipmentIC.InsertCorrespondence.Content.Attachments = new AttachmentsV2(); Filter = new GetCorrespondenceStatus(); CorrespondenceStatus = new CorrespondenceStatusResultV3(); Filter.CorrespondenceStatusFilter = new CorrespondenceStatusFilterV3(); Filter.CorrespondenceStatusFilter.SdpSearchOptions = new SdpStatusSearchOptions(); GCHShipment = new GetCorrespondenceStatusHistoryAECShipment(); SetUpObjForPropGrid(); tb_userName.Enabled = false; tb_password.Enabled = false; }