public LandedCostResponseObject getLandedCostEstimate(LandedCostInput objLandedCostInput, string referenceID) { object[] results = this.Invoke("getLandedCostEstimate", new object[] { objLandedCostInput, referenceID }); return((LandedCostResponseObject)(results[0])); }
/// <remarks/> public void getLandedCostEstimateAsync(LandedCostInput objLandedCostInput, string referenceID, object userState) { if ((this.getLandedCostEstimateOperationCompleted == null)) { this.getLandedCostEstimateOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetLandedCostEstimateOperationCompleted); } this.InvokeAsync("getLandedCostEstimate", new object[] { objLandedCostInput, referenceID }, this.getLandedCostEstimateOperationCompleted, userState); }
private void DHLTASLandedCost() { DHLTASLandedCostWebReference.LandedCostService service = new DHLTASLandedCostWebReference.LandedCostService(); service.Credentials = new System.Net.NetworkCredential("xxxx", "pwd"); DHLTASLandedCostWebReference.LandedCostInput input = new DHLTASLandedCostWebReference.LandedCostInput(); input.countryCode = txtDLCProductCountry.Text.Trim(); input.description = txtDLCProductDesc.Text.Trim(); input.domain = "IMPORT"; input.insuranceValue = txtDLCInsurance.Text.Trim(); input.insuranceCurrency = "USD"; //Measurement input.measurementType = cbDLCMeasureType.Text; input.unit = cbDLCMeasureUnit.Text; input.value = txtDLCMeasureValue.Text.Trim(); input.priceValue = txtDLCPrice.Text.Trim(); input.priceCurrency = "USD"; input.productCode = txtDLCProductCode.Text.Trim(); input.type = cbDLCCodeType.Text; input.shipperCountry = txtDLCShipperCountry.Text.Trim(); input.receiverCountry = txtDLCReceiverCountry.Text.Trim(); input.shipToState = txtDLCReceiverState.Text.Trim(); input.shipmentCurrency = txtDLCShipmentCurrency.Text.Trim(); input.totalQuantity = txtDLCTotalQty.Text.Trim(); input.transportationValue = txtDLCTransportationValue.Text.Trim(); input.transportationCurrency = "USD"; DHLTASLandedCostWebReference.LandedCostResponseObject response = service.getLandedCostEstimate(input, ""); if (response != null) { lblDLCEstimatedFees.Text = response.response.totalEstimatedFees; lblDLCLandedCost.Text = response.response.totalLandedCost; lblDLCShipmentValue.Text = response.response.shipmentValue; } }
/// <remarks/> public void getLandedCostEstimateAsync(LandedCostInput objLandedCostInput, string referenceID) { this.getLandedCostEstimateAsync(objLandedCostInput, referenceID, null); }