3.3.1 確認貨物 (C#)
確認貨物範例程式
ShipmentsCredentials cred = new ShipmentsCredentials();
cred.UserName = "username";
cred.Password = "password";
cred.CultureType = CultureType.English;
ShipmentsParameter ship = new ShipmentsParameter();
ship.ShipmentsCredentials = cred;
ship.ActionType = ActionType.Confirm;
ship.CustomerCode = "300001";
ship.ProfitCentreCode = string.Empty;
ship.HawbNo = "344010500000151";
ShipmentsClient client = new ShipmentsClient();
ShipmentsResponse response = client.ProcessShipments(ship);