ControlTagItem[] ctrlIntlShippingServices,
JTextField txtShippingServiceSelectedCost)
{
ShippingServiceOptionsType shippingServiceOptionsType = null;
ShippingServiceCodeType selectedShippingService = null;
int idx = cbxShippingServiceSelected.getSelectedIndex();
if (idx > 0) {
selectedShippingService = (ShippingServiceCodeType)ctrlShippingServices[idx].Tag;
}
else {
idx = cbxIntlShippingServiceSelected.getSelectedIndex();
if (idx > 0) {
selectedShippingService = (ShippingServiceCodeType)ctrlIntlShippingServices[idx].Tag;
}
}
if (selectedShippingService != null) {
shippingServiceOptionsType = new ShippingServiceOptionsType();
shippingServiceOptionsType.setShippingService(selectedShippingService.value());
String cost = txtShippingServiceSelectedCost.getText();
if (cost != null && cost.length() > 0) {
AmountType shippingServiceSelectedCost = new AmountType();
shippingServiceSelectedCost.setValue(Double.parseDouble(cost));
shippingServiceSelectedCost.setCurrencyID(currencyId);