Home
Find the answer to your question
ListingDurationCodeType / ShippingServiceCodeType are changed in WSDL457, should I change my JAVA SDK client code?
Detail Description
As stated in e457 release note, all WSDL elements previously based on ShippingServiceCodeType and ListingDurationCodeType are now based on xs:token. This update requires code change for Java SDK clients. Hence, the SDK e459 or higher SDK version is not backward-compatible with the SDK that is based on 455 or lower WSDL version.
NOTE. The two types can also be set as:
item.setListingDuration(ListingDurationCodeType.Days_7.getValue())
st.setShippingService(ShippingServiceCodeType.USPSPriority.getValue())
respectively, however; applications should not depend on the ShippingServiceCodeType and ListingDurationCodeType sets retained in the corresponding Axis generated JAVA source code because there is no guarantee that the schema has all of the new and updated entries. You need to use GetCategoryFeatures for the available durations options for the site and use GeteBayDetails for the complete list of shipping services.
Additional Resources