public static bool LoadFromFile(string fileName, out WayBillType obj)
 {
     Exception exception = null;
     return LoadFromFile(fileName, out obj, out exception);
 }
 public static bool Deserialize(string input, out WayBillType obj)
 {
     Exception exception = null;
     return Deserialize(input, out obj, out exception);
 }
 /// <summary>
 /// Deserializes xml markup from file into an WayBillType object
 /// </summary>
 /// <param name="fileName">string xml file to load and deserialize</param>
 /// <param name="obj">Output WayBillType object</param>
 /// <param name="exception">output Exception value if deserialize failed</param>
 /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
 public static bool LoadFromFile(string fileName, out WayBillType obj, out Exception exception)
 {
     exception = null;
     obj = default(WayBillType);
     try
     {
         obj = LoadFromFile(fileName);
         return true;
     }
     catch (Exception ex)
     {
         exception = ex;
         return false;
     }
 }
 /// <summary>
 /// Deserializes workflow markup into an WayBillType object
 /// </summary>
 /// <param name="input">string workflow markup to deserialize</param>
 /// <param name="obj">Output WayBillType object</param>
 /// <param name="exception">output Exception value if deserialize failed</param>
 /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
 public static bool Deserialize(string input, out WayBillType obj, out Exception exception)
 {
     exception = null;
     obj = default(WayBillType);
     try
     {
         obj = Deserialize(input);
         return true;
     }
     catch (Exception ex)
     {
         exception = ex;
         return false;
     }
 }
 /// <summary>
 /// Shipment class constructor
 /// </summary>
 public Shipment()
 {
     _transportLegCollection = new List<ShipmentTransportLeg>();
     _subShipmentCollection = new List<Shipment>();
     _relatedShipmentCollection = new List<Shipment>();
     _preCarriageShipmentCollection = new List<Shipment>();
     _postCarriageShipmentCollection = new List<Shipment>();
     _parentShipmentCollection = new List<Shipment>();
     _packingLineCollection = new List<PackingLine>();
     _organizationAddressCollection = new List<OrganizationAddress>();
     _noteCollection = new List<Note>();
     _instructionCollection = new List<ShipmentInstruction>();
     _entryNumberCollection = new List<ShipmentEntryNumber>();
     _entryHeaderCollection = new List<EntryHeader>();
     _dateCollection = new List<Date>();
     _customsReferenceCollection = new List<CustomsReference>();
     _customizedFieldCollection = new List<CustomizedField>();
     _containerCollection = new ShipmentContainerCollection();
     _additionalReferenceCollection = new ShipmentAdditionalReferenceCollection();
     _additionalBillCollection = new List<ShipmentAdditionalBill>();
     _addInfoGroupCollection = new List<AddInfoGroup>();
     _addInfoCollection = new List<AddInfo>();
     _order = new ShipmentOrder();
     _localProcessing = new ShipmentLocalProcessing();
     _carrierDocumentsOverride = new ShipmentCarrierDocumentsOverride();
     _wayBillType = new WayBillType();
     _warehouseReleaseStatus = new CodeDescriptionPair();
     _vesselCountryOfRegistration = new Country();
     _transportMode = new CodeDescriptionPair();
     _transportBookingDirection = new ShipmentTransportBookingDirection();
     _totalWeightUnit = new UnitOfWeight();
     _totalVolumeUnit = new UnitOfVolume();
     _totalPreallocatedWeightUnit = new UnitOfWeight();
     _totalPreallocatedVolumeUnit = new UnitOfVolume();
     _totalNoOfPacksPackageType = new PackageType();
     _shipperCODPayMethod = new CodeDescriptionPair();
     _shippedOnBoard = new CodeDescriptionPair();
     _shipmentType = new CodeDescriptionPair();
     _shipmentSubType = new CodeDescriptionPair();
     _shipmentStatus = new CodeDescriptionPair();
     _shipmentIncoTerm = new IncoTerm();
     _serviceLevel = new ServiceLevel();
     _screeningStatus = new CodeDescriptionPair();
     _releaseType = new CodeDescriptionPair();
     _ratingTransportMode = new CodeDescriptionPair();
     _portOfOrigin = new UNLOCO();
     _portOfLoading = new UNLOCO();
     _portOfFirstArrival = new UNLOCO();
     _portOfDischarge = new UNLOCO();
     _portOfDestination = new UNLOCO();
     _portMessaging = new PortMessaging();
     _portLastForeign = new UNLOCO();
     _portFirstForeign = new UNLOCO();
     _paymentMethod = new CodeDescriptionPair();
     _outerPacksPackageType = new PackageType();
     _operationalStatus = new CodeDescriptionPair();
     _messageType = new CodeDescriptionPair();
     _messageSubType = new CodeDescriptionPair();
     _messageStatus = new CodeDescriptionPair();
     _mergeBy = new CodeDescriptionPair();
     _localTransportJobType = new CodeDescriptionPair4Char();
     _localTransportEquipmentNeeded = new CodeDescriptionPair();
     _jobCosting = new ShipmentJobCosting();
     _isNeutralMaster = new IsNeutralMaster();
     _insuranceValueCurrency = new Currency();
     _hBLAWBChargesDisplay = new CodeDescriptionPair();
     _goodsValueCurrency = new Currency();
     _goodsOrigin = new Country();
     _freightRateCurrency = new Currency();
     _exportGoodsType = new CodeDescriptionPair();
     _entryStatus = new EntryStatus();
     _eFTMode = new CodeDescriptionPair();
     _customsContainerMode = new ContainerMode();
     _customsBroker = new Staff();
     _countryOfSupply = new Country();
     _containerMode = new ContainerMode();
     _consolidatedCargoStatus = new CodeDescriptionPair();
     _consolCosts = new ShipmentConsolCosts();
     _commercialInfo = new CommercialInfo();
     _carrierServiceLevel = new ServiceLevel();
     _carrierCorrectedWeightUnit = new UnitOfWeight();
     _carrierCorrectedVolumeUnit = new UnitOfVolume();
     _branch = new Branch();
     _aWBServiceLevel = new CodeDescriptionPair();
     _dataContext = new DataContext();
 }
 /// <summary>
 /// PackingLine class constructor
 /// </summary>
 public PackingLine()
 {
     _uNDGCollection = new List<UNDG>();
     _packingLineCollection = new List<PackingLine>();
     _packedItemCollection = new List<PackingLinePackedItem>();
     _customizedFieldCollection = new List<CustomizedField>();
     _weightUnit = new UnitOfWeight();
     _volumeUnit = new UnitOfVolume();
     _vehicle = new Vehicle();
     _requiredTemperatureUnit = new CodeDescriptionPair1Char();
     _portMessaging = new PortMessaging();
     _packType = new PackageType();
     _linePriceCurrency = new Currency();
     _lengthUnit = new UnitOfLength();
     _countryOfOrigin = new Country();
     _commodity = new Commodity();
     _billType = new WayBillType();
 }
 /// <summary>
 /// ShipmentAdditionalBill class constructor
 /// </summary>
 public ShipmentAdditionalBill()
 {
     _organizationAddressCollection = new List<OrganizationAddress>();
     _customsReferenceCollection = new List<CustomsReference>();
     _addInfoGroupCollection = new List<AddInfoGroup>();
     _addInfoCollection = new List<AddInfo>();
     _packType = new PackageType();
     _messageStatus = new CodeDescriptionPair();
     _billType = new WayBillType();
 }
 /// <summary>
 /// CommercialInfoCommercialInvoice class constructor
 /// </summary>
 public CommercialInfoCommercialInvoice()
 {
     _organizationAddressCollection = new List<OrganizationAddress>();
     _noteCollection = new List<Note>();
     _customsReferenceCollection = new List<CustomsReference>();
     _commercialInvoiceLineCollection = new List<CommercialInfoCommercialInvoiceCommercialInvoiceLine>();
     _commercialChargeCollection = new List<CommercialCharge>();
     _addInfoGroupCollection = new List<AddInfoGroup>();
     _addInfoCollection = new List<AddInfo>();
     _weightUnit = new UnitOfWeight();
     _volumeUnit = new UnitOfVolume();
     _supplier = new OrganizationAddress();
     _messageStatus = new CodeDescriptionPair();
     _invoiceCurrency = new Currency();
     _incoTerm = new CodeDescriptionPair();
     _exchangeRateType = new CodeDescriptionPair();
     _buyer = new OrganizationAddress();
     _billType = new WayBillType();
 }