02-20-2023 11:55 PM
Parsing the Trading API xsd schema hasn't worked since prior to 1255 without edits.
current fixes for 1295 (3 total) to remove errors:
(split across multiple posts to try to isolate anything setting off spam flags making my posts disappear)
02-20-2023 11:57 PM
Error 1:
>XMLSchemaParseError: Element '{W3_URL_REMOVED}element': The attribute 'maxOccur' is not allowed., line 49224
>XMLSchemaParseError: attribute 'maxOccur' not allowed:
FIX:
change maxOccur to maxOccurs
Error 2:
>XMLSchemaKeyError: "global xs:simpleType/xs:complexType '{ebayxmlurn_REMOVED}RecommendationsType' not found"
>XMLSchemaParseError: unknown type 'ns:RecommendationsType':
>XMLSchemaParseError: element decl. '{ebayxmlurn_REMOVED}Recommendations', attribute 'type': The QName value '{ebayxmlurn_REMOVED}RecommendationsType' does not resolve to a(n) type definition., line 48844
FIX:
field is deprecated, so shouldn't be using anyway
Remove lines 48842-48853
<xs:element name="Recommendations" type="ns:RecommendationsType" minOccurs="0">
<xs:annotation>
<xs:documentation>
This field is deprecated.
</xs:documentation>
<xs:appinfo>
<noCalls/>
</xs:appinfo>
</xs:annotation>
</xs:element>
02-21-2023 12:01 AM
Error 1:
>XMLSchemaParseError: Element '{W3_URL_REMOVED}element': The attribute 'maxOccur' is not allowed., line 49224
>XMLSchemaParseError: attribute 'maxOccur' not allowed:
FIX:
change maxOccur to maxOccurs
02-21-2023 12:02 AM
Error 2:
>XMLSchemaKeyError: "global xs:simpleType/xs:complexType '{ebayxmlurn_REMOVED}RecommendationsType' not found"
>XMLSchemaParseError: unknown type 'ns:RecommendationsType':
>XMLSchemaParseError: element decl. '{ebayxmlurn_REMOVED}Recommendations', attribute 'type': The QName value '{ebayxmlurn_REMOVED}RecommendationsType' does not resolve to a(n) type definition., line 48844
FIX:
field is deprecated, so shouldn't be using anyway
Remove lines 48842-48853
02-21-2023 12:03 AM - edited 02-21-2023 12:05 AM
<xs:element name="Recommendations" type="ns:RecommendationsType" minOccurs="0">
<xs:annotation>
<xs:documentation>
This field is deprecated.
</xs:documentation>
<xs:appinfo>
<noCalls/>
</xs:appinfo>
</xs:annotation>
</xs:element>
^ part above is what to remove
02-21-2023 12:04 AM
Error 3:
>XMLSchemaParseError: unknown type 'ns:StoreItemListSortOrderCodeType':
>XMLSchemaParseError: element decl. '{ebayxmlurn_REMOVED}SearchSortOrder', attribute 'type': The QName value '{ebayxmlurn_REMOVED}StoreItemListSortOrderCodeType' does not resolve to a(n) type definition.
FIX:
Still listed as a valid optional field in the 1295 docs. Find the definition from an earlier xsd version (try 1249) and paste it in to 1295:
Place between the definitions of
##### from file eBLBaseComponents/public/StoreInventoryEnabledDefinitionType.xsd #####
##### from file eBLBaseComponents/public/StoreLogoType.xsd #####
as lines 102617-102684
02-21-2023 12:13 AM
Results should look kind of like:
<!--
##### from file eBLBaseComponents/public/StoreInventoryEnabledDefinitionType.xsd #####
-->
<xs:complexType name="StoreInventoryEnabledDefinitionType">
<xs:annotation>
<xs:documentation>
This type is no longer applicable, as Store Inventory is no longer a supported eBay listing type.
</xs:documentation>
</xs:annotation>
<xs:sequence>
</xs:sequence>
</xs:complexType>
<!--
##### from file eBLBaseComponents/public/StoreItemListSortOrderCodeList.xsd #####
-->
<xs:simpleType name="StoreItemListSortOrderCodeType">
<xs:annotation>
<xs:documentation>
List of available options for how items are sorted in an eBay Store.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:enumeration value="EndingFirst">
<xs:annotation>
<xs:documentation>
Lists items with those ending soon listed first.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="NewlyListed">
<xs:annotation>
<xs:documentation>
Lists items with those newly listed appearing in the list first.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="LowestPriced">
<xs:annotation>
<xs:documentation>
Lists items by price in ascending order. The item with the lowest
starting price is listed first.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="HighestPriced">
<xs:annotation>
<xs:documentation>
Lists items by price in descending order. The item with the highest
starting price is listed first.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="LowestPricedPlusShipping">
<xs:annotation>
<xs:documentation>
Lists items by combined price and shipping cost in ascending order. The item
with the lowest combined starting price plus shipping cost is listed first.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="HighestPricedPlusShipping">
<xs:annotation>
<xs:documentation>
Reserved for future use.
Lists items by combined price and shipping cost in descending order. The item
with the highest combined starting price plus shipping cost is listed first.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="CustomCode">
<xs:annotation>
<xs:documentation>
(out) Reserved for internal or future use.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<!--
##### from file eBLBaseComponents/public/StoreLogoType.xsd #####
-->
03-08-2023 11:36 AM
Version 1299 update:
Error 3 has been resolved, StoreItemListSortOrderCodeType has been restored.
Errors 1 & 2 still exist though making the schema invalid to parse. maxOccur -> maxOccurs, and cleaning up of name="Recommendations" type="ns:RecommendationsType" (or adding a ns:RecommendationsType back in.)