Я использую .NET eBay API для создания товара с фиксированной ценой.Но я продолжаю получать сообщение об ошибке «Необходимо указать хотя бы одну действительную почтовую службу» в журнале.
Ниже приведен код, отсекаемый при инициализации доставки моего товара.
item.DispatchTimeMax = 15; // see https://developer.ebay.com/devzone/xml/Docs/Reference/ebay/types/DispatchTimeMaxDetailsType.html
item.ShippingDetails = new ShippingDetailsType();
item.ShippingDetails.ShippingServiceUsed = ShippingServiceCodeType.AU_Registered.ToString();
item.ShippingDetails.ShippingType = ShippingTypeCodeType.Flat;
item.ShippingDetails.DefaultShippingCost = new AmountType();
item.ShippingDetails.DefaultShippingCost.currencyID = CurrencyCodeType.AUD;
item.ShippingDetails.DefaultShippingCost.Value = 10;
item.ShipToLocations = new StringCollection();
item.ShipToLocations.Add("AU"); // see https://developer.ebay.com/devzone/finding/callref/Enums/shipToLocationList.html
item.ShipToLocations.Add("NZ");
Однако, когда я звоню
var fees = new VerifyAddFixedPriceItemCall(apiContext).VerifyAddFixedPriceItem(item);
, я получаю эту ошибку
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<VerifyAddFixedPriceItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2018-12-14T13:55:16.345Z</Timestamp>
<Ack>Failure</Ack>
<CorrelationID>7f726a53-0d44-43ad-a4db-8cb6e241b0bf</CorrelationID>
<Errors>
<ShortMessage>A postage service is not specified.</ShortMessage>
<LongMessage>At least one valid postage service must be specified.</LongMessage>
<ErrorCode>21915469</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>1085</Version>
<Build>E1085_UNI_API5_18868456_R1</Build>
</VerifyAddFixedPriceItemResponse>
</soapenv:Body>
</soapenv:Envelope>
[12/15/2018 12:55:16 AM, Error]
At least one valid postage service must be specified.
Что я делаю не так?