public ReceiptExternal InsertCorrespondence(InsertCorrespondenceShipmentEC2 shipment) { var client = GenerateProxy(shipment); OperationContext = _context + "InsertCorrespondence"; return(client.InsertCorrespondenceEC(shipment.Username, shipment.Password, shipment.SystemUserCode, shipment.ExternalShipmentReference, shipment.InsertCorrespondence)); }
public CorrespondenceAgencyFormEC2() { InitializeComponent(); MyCollectionEditor.MyFormClosed += MyCollectionEditor_MyFormClosed; _caepFunc = new CorrespondenceAgencyEndPointFunctionEC2(); _caepFunc.ReturnMessageXml += ReturnMessageXmlHandler; ShipmentTest = new BaseShipment(); Notifications = new NotificationBEList(); ShipmentIc = new InsertCorrespondenceShipmentEC2 { InsertCorrespondence = new InsertCorrespondenceV2() }; ShipmentIc.InsertCorrespondence.Notifications = Notifications; ShipmentIc.InsertCorrespondence.ReplyOptions = new CorrespondenceInsertLinkBEList(); ShipmentIc.InsertCorrespondence.Content = new ExternalContentV2 { Attachments = new AttachmentsV2() }; GchShipment = new GetCorrespondenceStatusHistoryShipmentEC2(); GcdShipment = new GetCorrespondenceStatusDetailsShipmentEC2(); _gchResult = new CorrespondenceStatusHistoryResultExEC2(); // InvokeAssignTypeDescriptor(this.GetType()); SetUpObjForPropGrid(); }