是否有人熟悉UPS Web服务DOTNET的API示例代码,我正在测试UPS API ShipWSSample的代码示例。我返回了跟踪号,但不确定如何从ShipmentResponse获取标签数据。该代码在我得到响应的上方引用了标签代码。
Dim labelSpec As New LabelSpecificationType()
Dim labelStockSize As New LabelStockSizeType()
labelStockSize.Height = "6"
labelStockSize.Width = "4"
labelSpec.LabelStockSize = labelStockSize
Dim labelImageFormat As New LabelImageFormatType()
labelImageFormat.Code = "GIF"
labelSpec.LabelImageFormat = labelImageFormat
shipmentRequest.Shipment = shipment
System.Net.ServicePointManager.SecurityProtocol = DirectCast(3072, SecurityProtocolType)
Dim shipmentResponse As ShipmentResponse = shpSvc.ProcessShipment(shipmentRequest)
任何帮助将不胜感激 迈克