cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trading API schema has errors since version 1255

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)

Message 1 of 8
latest reply
7 REPLIES 7

Trading API schema has errors since version 1255

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> 

 

Message 2 of 8
latest reply

Trading API schema has errors since version 1255

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

Message 3 of 8
latest reply

Trading API schema has errors since version 1255

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

 

Message 4 of 8
latest reply

Trading API schema has errors since version 1255



<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

Message 5 of 8
latest reply

Trading API schema has errors since version 1255

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

Message 6 of 8
latest reply

Trading API schema has errors since version 1255

 

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 #####

-->

 

Message 7 of 8
latest reply

Trading API schema has errors since version 1255

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.)

Message 8 of 8
latest reply