Skip to content

Instantly share code, notes, and snippets.

@pulkitsinghal
Last active September 14, 2016 18:10
Attempt at creating a schema for ListMatchingProductsResponse (amazon/mws)
var ListMatchingProductsResponse_Module_Factory = function () {
var ListMatchingProductsResponse = {
name: 'ListMatchingProductsResponse',
defaultElementNamespaceURI: 'http:\/\/mws.amazonservices.com\/schema\/Products\/2011-10-01',
typeInfos: [{
localName: 'OfferType',
propertyInfos: [{
name: 'buyingPrice',
required: true,
elementName: 'BuyingPrice',
typeInfo: '.PriceType'
}, {
name: 'regularPrice',
required: true,
elementName: 'RegularPrice',
typeInfo: '.MoneyType'
}, {
name: 'fulfillmentChannel',
required: true,
elementName: 'FulfillmentChannel'
}, {
name: 'itemCondition',
required: true,
elementName: 'ItemCondition'
}, {
name: 'itemSubCondition',
required: true,
elementName: 'ItemSubCondition'
}, {
name: 'sellerId',
required: true,
elementName: 'SellerId'
}, {
name: 'sellerSKU',
required: true,
elementName: 'SellerSKU'
}]
}, {
localName: 'GetLowestPricedOffersForSKUResult.Summary.BuyBoxPrices',
typeName: null,
propertyInfos: [{
name: 'buyBoxPrice',
minOccurs: 0,
collection: true,
elementName: 'BuyBoxPrice',
typeInfo: '.BuyBoxPriceType'
}]
}, {
localName: 'GetLowestPricedOffersForASINResult.Summary.BuyBoxPrices',
typeName: null,
propertyInfos: [{
name: 'buyBoxPrice',
minOccurs: 0,
collection: true,
elementName: 'BuyBoxPrice',
typeInfo: '.BuyBoxPriceType'
}]
}, {
localName: 'OfferListingCountType',
propertyInfos: [{
name: 'value',
typeInfo: 'Integer',
type: 'value'
}, {
name: 'condition',
attributeName: {
localPart: 'condition'
},
type: 'attribute'
}]
}, {
localName: 'NumberOfOfferListingsType',
propertyInfos: [{
name: 'offerListingCount',
minOccurs: 0,
collection: true,
elementName: 'OfferListingCount',
typeInfo: '.OfferListingCountType'
}]
}, {
localName: 'SalesRankList',
propertyInfos: [{
name: 'salesRank',
minOccurs: 0,
collection: true,
elementName: 'SalesRank',
typeInfo: '.SalesRankType'
}]
}, {
localName: 'CompetitivePriceType',
propertyInfos: [{
name: 'competitivePriceId',
required: true,
elementName: 'CompetitivePriceId'
}, {
name: 'price',
required: true,
elementName: 'Price',
typeInfo: '.PriceType'
}, {
name: 'condition',
required: true,
attributeName: {
localPart: 'condition'
},
type: 'attribute'
}, {
name: 'subcondition',
required: true,
attributeName: {
localPart: 'subcondition'
},
type: 'attribute'
}, {
name: 'belongsToRequester',
required: true,
typeInfo: 'Boolean',
attributeName: {
localPart: 'belongsToRequester'
},
type: 'attribute'
}]
}, {
localName: 'GetLowestPricedOffersForASINResult.Summary.LowestPrices',
typeName: null,
propertyInfos: [{
name: 'lowestPrice',
minOccurs: 0,
collection: true,
elementName: 'LowestPrice',
typeInfo: '.LowestPriceType'
}]
}, {
localName: 'GetLowestPricedOffersForSKUResult.Identifier',
typeName: null,
propertyInfos: [{
name: 'marketplaceId',
required: true,
elementName: 'MarketplaceId'
}, {
name: 'sellerSKU',
required: true,
elementName: 'SellerSKU'
}, {
name: 'itemCondition',
required: true,
elementName: 'ItemCondition'
}, {
name: 'timeOfOfferChange',
elementName: 'TimeOfOfferChange',
typeInfo: 'DateTime'
}]
}, {
localName: 'LowestOfferListingList',
propertyInfos: [{
name: 'lowestOfferListing',
minOccurs: 0,
collection: true,
elementName: 'LowestOfferListing',
typeInfo: '.LowestOfferListingType'
}]
}, {
localName: 'GetLowestPricedOffersForASINResult',
propertyInfos: [{
name: 'identifier',
required: true,
elementName: 'Identifier',
typeInfo: '.GetLowestPricedOffersForASINResult.Identifier'
}, {
name: 'summary',
required: true,
elementName: 'Summary',
typeInfo: '.GetLowestPricedOffersForASINResult.Summary'
}, {
name: 'offers',
required: true,
elementName: 'Offers',
typeInfo: '.GetLowestPricedOffersForASINResult.Offers'
}, {
name: 'marketplaceID',
required: true,
attributeName: {
localPart: 'MarketplaceID'
},
type: 'attribute'
}, {
name: 'itemCondition',
required: true,
attributeName: {
localPart: 'ItemCondition'
},
type: 'attribute'
}, {
name: 'asin',
required: true,
attributeName: {
localPart: 'ASIN'
},
type: 'attribute'
}, {
name: 'status',
required: true,
attributeName: {
localPart: 'status'
},
type: 'attribute'
}]
}, {
localName: 'GetLowestPricedOffersForASINResult.Summary',
typeName: null,
propertyInfos: [{
name: 'totalOfferCount',
required: true,
elementName: 'TotalOfferCount',
typeInfo: 'Integer'
}, {
name: 'numberOfOffers',
elementName: 'NumberOfOffers',
typeInfo: '.OfferCountType'
}, {
name: 'lowestPrices',
elementName: 'LowestPrices',
typeInfo: '.GetLowestPricedOffersForASINResult.Summary.LowestPrices'
}, {
name: 'buyBoxPrices',
elementName: 'BuyBoxPrices',
typeInfo: '.GetLowestPricedOffersForASINResult.Summary.BuyBoxPrices'
}, {
name: 'listPrice',
elementName: 'ListPrice',
typeInfo: '.MoneyType'
}, {
name: 'suggestedLowerPricePlusShipping',
elementName: 'SuggestedLowerPricePlusShipping',
typeInfo: '.MoneyType'
}, {
name: 'buyBoxEligibleOffers',
elementName: 'BuyBoxEligibleOffers',
typeInfo: '.OfferCountType'
}]
}, {
localName: 'GetLowestPricedOffersForASINResult.Identifier',
typeName: null,
propertyInfos: [{
name: 'marketplaceId',
required: true,
elementName: 'MarketplaceId'
}, {
name: 'asin',
required: true,
elementName: 'ASIN'
}, {
name: 'itemCondition',
required: true,
elementName: 'ItemCondition'
}, {
name: 'timeOfOfferChange',
elementName: 'TimeOfOfferChange',
typeInfo: 'DateTime'
}]
}, {
localName: 'QualifiersType',
propertyInfos: [{
name: 'itemCondition',
required: true,
elementName: 'ItemCondition'
}, {
name: 'itemSubcondition',
required: true,
elementName: 'ItemSubcondition'
}, {
name: 'fulfillmentChannel',
required: true,
elementName: 'FulfillmentChannel'
}, {
name: 'shipsDomestically',
required: true,
elementName: 'ShipsDomestically'
}, {
name: 'shippingTime',
required: true,
elementName: 'ShippingTime',
typeInfo: '.ShippingTimeType'
}, {
name: 'sellerPositiveFeedbackRating',
required: true,
elementName: 'SellerPositiveFeedbackRating'
}]
}, {
localName: 'OfferCountType',
propertyInfos: [{
name: 'offerCount',
minOccurs: 0,
collection: true,
elementName: 'OfferCount',
typeInfo: '.OfferCountType.OfferCount'
}]
}, {
localName: 'GetLowestPricedOffersForSKUResult.Offers',
typeName: null,
propertyInfos: [{
name: 'offer',
minOccurs: 0,
maxOccurs: 20,
collection: true,
elementName: 'Offer',
typeInfo: '.GetLowestPricedOffersForSKUResult.Offers.Offer'
}]
}, {
localName: 'LowestOfferListingType',
propertyInfos: [{
name: 'qualifiers',
required: true,
elementName: 'Qualifiers',
typeInfo: '.QualifiersType'
}, {
name: 'numberOfOfferListingsConsidered',
elementName: 'NumberOfOfferListingsConsidered',
typeInfo: 'Integer'
}, {
name: 'sellerFeedbackCount',
required: true,
elementName: 'SellerFeedbackCount',
typeInfo: 'Integer'
}, {
name: 'price',
required: true,
elementName: 'Price',
typeInfo: '.PriceType'
}, {
name: 'multipleOffersAtLowestPrice',
required: true,
elementName: 'MultipleOffersAtLowestPrice'
}]
}, {
localName: 'GetLowestPricedOffersForSKUResult.Offers.Offer',
typeName: null,
propertyInfos: [{
name: 'myOffer',
required: true,
elementName: 'MyOffer',
typeInfo: 'Boolean'
}, {
name: 'subCondition',
required: true,
elementName: 'SubCondition'
}, {
name: 'sellerFeedbackRating',
elementName: 'SellerFeedbackRating',
typeInfo: '.SellerFeedbackType'
}, {
name: 'shippingTime',
required: true,
elementName: 'ShippingTime',
typeInfo: '.DetailedShippingTimeType'
}, {
name: 'listingPrice',
required: true,
elementName: 'ListingPrice',
typeInfo: '.MoneyType'
}, {
name: 'points',
elementName: 'Points',
typeInfo: '.Points'
}, {
name: 'shipping',
required: true,
elementName: 'Shipping',
typeInfo: '.MoneyType'
}, {
name: 'shipsFrom',
elementName: 'ShipsFrom',
typeInfo: '.ShipsFromType'
}, {
name: 'isFulfilledByAmazon',
required: true,
elementName: 'IsFulfilledByAmazon',
typeInfo: 'Boolean'
}, {
name: 'isBuyBoxWinner',
elementName: 'IsBuyBoxWinner',
typeInfo: 'Boolean'
}, {
name: 'isFeaturedMerchant',
elementName: 'IsFeaturedMerchant',
typeInfo: 'Boolean'
}]
}, {
localName: 'RelationshipList',
propertyInfos: [{
name: 'baseRelationship',
minOccurs: 0,
collection: true,
mixed: false,
allowDom: false,
elementName: 'BaseRelationship',
typeInfo: '.BaseRelationshipType',
type: 'elementRef'
}]
}, {
localName: 'ShippingTimeType',
propertyInfos: [{
name: 'max',
elementName: 'Max'
}]
}, {
localName: 'MarketplaceASINType',
propertyInfos: [{
name: 'marketplaceId',
required: true,
elementName: 'MarketplaceId'
}, {
name: 'asin',
required: true,
elementName: 'ASIN'
}]
}, {
localName: 'ProductType',
propertyInfos: [{
name: 'identifiers',
required: true,
elementName: 'Identifiers',
typeInfo: '.IdentifierType'
}, {
name: 'attributeSets',
elementName: 'AttributeSets',
typeInfo: '.AttributeSetList'
}, {
name: 'relationships',
elementName: 'Relationships',
typeInfo: '.RelationshipList'
}, {
name: 'competitivePricing',
elementName: 'CompetitivePricing',
typeInfo: '.CompetitivePricingType'
}, {
name: 'salesRankings',
elementName: 'SalesRankings',
typeInfo: '.SalesRankList'
}, {
name: 'lowestOfferListings',
elementName: 'LowestOfferListings',
typeInfo: '.LowestOfferListingList'
}, {
name: 'offers',
elementName: 'Offers',
typeInfo: '.OffersList'
}]
}, {
localName: 'GetLowestPricedOffersForSKUResult.Summary',
typeName: null,
propertyInfos: [{
name: 'totalOfferCount',
required: true,
elementName: 'TotalOfferCount',
typeInfo: 'Integer'
}, {
name: 'numberOfOffers',
elementName: 'NumberOfOffers',
typeInfo: '.OfferCountType'
}, {
name: 'lowestPrices',
elementName: 'LowestPrices',
typeInfo: '.GetLowestPricedOffersForSKUResult.Summary.LowestPrices'
}, {
name: 'buyBoxPrices',
elementName: 'BuyBoxPrices',
typeInfo: '.GetLowestPricedOffersForSKUResult.Summary.BuyBoxPrices'
}, {
name: 'listPrice',
elementName: 'ListPrice',
typeInfo: '.MoneyType'
}, {
name: 'suggestedLowerPricePlusShipping',
elementName: 'SuggestedLowerPricePlusShipping',
typeInfo: '.MoneyType'
}, {
name: 'buyBoxEligibleOffers',
elementName: 'BuyBoxEligibleOffers',
typeInfo: '.OfferCountType'
}]
}, {
localName: 'AttributeSetType',
propertyInfos: [{
name: 'nil',
typeInfo: 'AnyType'
}]
}, {
localName: 'BuyBoxPriceType',
propertyInfos: [{
name: 'landedPrice',
required: true,
elementName: 'LandedPrice',
typeInfo: '.MoneyType'
}, {
name: 'listingPrice',
required: true,
elementName: 'ListingPrice',
typeInfo: '.MoneyType'
}, {
name: 'shipping',
required: true,
elementName: 'Shipping',
typeInfo: '.MoneyType'
}, {
name: 'points',
elementName: 'Points',
typeInfo: '.Points'
}, {
name: 'condition',
required: true,
attributeName: {
localPart: 'condition'
},
type: 'attribute'
}]
}, {
localName: 'ListMatchingProductsResponse',
typeName: {
namespaceURI: 'http:\/\/localhost:8000\/ListMatchingProductsResponse.xsd',
localPart: 'ListMatchingProductsResponse'
},
propertyInfos: [{
name: 'listMatchingProductsResult',
elementName: {
localPart: 'ListMatchingProductsResult',
namespaceURI: 'http:\/\/localhost:8000\/ListMatchingProductsResponse.xsd'
},
typeInfo: '.ListMatchingProductsResult'
}, {
name: 'responseMetadata',
elementName: {
localPart: 'ResponseMetadata',
namespaceURI: 'http:\/\/localhost:8000\/ListMatchingProductsResponse.xsd'
},
typeInfo: '.ResponseMetadata'
}]
}, {
localName: 'LowestPriceType',
propertyInfos: [{
name: 'landedPrice',
required: true,
elementName: 'LandedPrice',
typeInfo: '.MoneyType'
}, {
name: 'listingPrice',
required: true,
elementName: 'ListingPrice',
typeInfo: '.MoneyType'
}, {
name: 'shipping',
required: true,
elementName: 'Shipping',
typeInfo: '.MoneyType'
}, {
name: 'points',
elementName: 'Points',
typeInfo: '.Points'
}, {
name: 'condition',
required: true,
attributeName: {
localPart: 'condition'
},
type: 'attribute'
}, {
name: 'fulfillmentChannel',
required: true,
attributeName: {
localPart: 'fulfillmentChannel'
},
type: 'attribute'
}]
}, {
localName: 'BaseRelationshipType',
propertyInfos: [{
name: 'identifiers',
required: true,
elementName: 'Identifiers',
typeInfo: '.IdentifierType'
}]
}, {
localName: 'ListMatchingProductsResult',
typeName: {
namespaceURI: 'http:\/\/localhost:8000\/ListMatchingProductsResponse.xsd',
localPart: 'ListMatchingProductsResult'
},
propertyInfos: [{
name: 'products',
elementName: {
localPart: 'Products',
namespaceURI: 'http:\/\/localhost:8000\/ListMatchingProductsResponse.xsd'
},
typeInfo: '.ProductList'
}]
}, {
localName: 'CompetitivePriceList',
propertyInfos: [{
name: 'competitivePrice',
minOccurs: 0,
collection: true,
elementName: 'CompetitivePrice',
typeInfo: '.CompetitivePriceType'
}]
}, {
localName: 'ShipsFromType',
propertyInfos: [{
name: 'state',
elementName: 'State'
}, {
name: 'country',
elementName: 'Country'
}]
}, {
localName: 'SellerFeedbackType',
propertyInfos: [{
name: 'sellerPositiveFeedbackRating',
elementName: 'SellerPositiveFeedbackRating',
typeInfo: 'Double'
}, {
name: 'feedbackCount',
required: true,
elementName: 'FeedbackCount',
typeInfo: 'Long'
}]
}, {
localName: 'AttributeSetList',
propertyInfos: [{
name: 'attributeSet',
minOccurs: 0,
collection: true,
elementName: 'AttributeSet',
typeInfo: '.AttributeSetType'
}]
}, {
localName: 'GetLowestPricedOffersForSKUResult.Summary.LowestPrices',
typeName: null,
propertyInfos: [{
name: 'lowestPrice',
minOccurs: 0,
collection: true,
elementName: 'LowestPrice',
typeInfo: '.LowestPriceType'
}]
}, {
localName: 'SalesRankType',
propertyInfos: [{
name: 'productCategoryId',
required: true,
elementName: 'ProductCategoryId'
}, {
name: 'rank',
required: true,
elementName: 'Rank',
typeInfo: 'Integer'
}]
}, {
localName: 'GetLowestPricedOffersForSKUResult',
propertyInfos: [{
name: 'identifier',
required: true,
elementName: 'Identifier',
typeInfo: '.GetLowestPricedOffersForSKUResult.Identifier'
}, {
name: 'summary',
required: true,
elementName: 'Summary',
typeInfo: '.GetLowestPricedOffersForSKUResult.Summary'
}, {
name: 'offers',
required: true,
elementName: 'Offers',
typeInfo: '.GetLowestPricedOffersForSKUResult.Offers'
}, {
name: 'marketplaceID',
required: true,
attributeName: {
localPart: 'MarketplaceID'
},
type: 'attribute'
}, {
name: 'sku',
required: true,
attributeName: {
localPart: 'SKU'
},
type: 'attribute'
}, {
name: 'itemCondition',
required: true,
attributeName: {
localPart: 'ItemCondition'
},
type: 'attribute'
}, {
name: 'status',
required: true,
attributeName: {
localPart: 'status'
},
type: 'attribute'
}]
}, {
localName: 'MoneyType',
propertyInfos: [{
name: 'currencyCode',
elementName: 'CurrencyCode'
}, {
name: 'amount',
elementName: 'Amount',
typeInfo: 'Decimal'
}]
}, {
localName: 'SellerSKUIdentifier',
propertyInfos: [{
name: 'marketplaceId',
required: true,
elementName: 'MarketplaceId'
}, {
name: 'sellerId',
required: true,
elementName: 'SellerId'
}, {
name: 'sellerSKU',
required: true,
elementName: 'SellerSKU'
}]
}, {
localName: 'DetailedShippingTimeType',
propertyInfos: [{
name: 'minimumHours',
typeInfo: 'Short',
attributeName: {
localPart: 'minimumHours'
},
type: 'attribute'
}, {
name: 'maximumHours',
typeInfo: 'Short',
attributeName: {
localPart: 'maximumHours'
},
type: 'attribute'
}, {
name: 'availableDate',
typeInfo: 'DateTime',
attributeName: {
localPart: 'availableDate'
},
type: 'attribute'
}, {
name: 'availabilityType',
attributeName: {
localPart: 'availabilityType'
},
type: 'attribute'
}]
}, {
localName: 'CompetitivePricingType',
propertyInfos: [{
name: 'competitivePrices',
required: true,
elementName: 'CompetitivePrices',
typeInfo: '.CompetitivePriceList'
}, {
name: 'numberOfOfferListings',
elementName: 'NumberOfOfferListings',
typeInfo: '.NumberOfOfferListingsType'
}, {
name: 'tradeInValue',
elementName: 'TradeInValue',
typeInfo: '.MoneyType'
}]
}, {
localName: 'OffersList',
propertyInfos: [{
name: 'offer',
minOccurs: 0,
collection: true,
elementName: 'Offer',
typeInfo: '.OfferType'
}]
}, {
localName: 'GetLowestPricedOffersForASINResult.Offers.Offer',
typeName: null,
propertyInfos: [{
name: 'subCondition',
required: true,
elementName: 'SubCondition'
}, {
name: 'sellerFeedbackRating',
elementName: 'SellerFeedbackRating',
typeInfo: '.SellerFeedbackType'
}, {
name: 'shippingTime',
required: true,
elementName: 'ShippingTime',
typeInfo: '.DetailedShippingTimeType'
}, {
name: 'listingPrice',
required: true,
elementName: 'ListingPrice',
typeInfo: '.MoneyType'
}, {
name: 'points',
elementName: 'Points',
typeInfo: '.Points'
}, {
name: 'shipping',
required: true,
elementName: 'Shipping',
typeInfo: '.MoneyType'
}, {
name: 'shipsFrom',
elementName: 'ShipsFrom',
typeInfo: '.ShipsFromType'
}, {
name: 'isFulfilledByAmazon',
required: true,
elementName: 'IsFulfilledByAmazon',
typeInfo: 'Boolean'
}, {
name: 'isBuyBoxWinner',
elementName: 'IsBuyBoxWinner',
typeInfo: 'Boolean'
}, {
name: 'isFeaturedMerchant',
elementName: 'IsFeaturedMerchant',
typeInfo: 'Boolean'
}]
}, {
localName: 'GetLowestPricedOffersForASINResult.Offers',
typeName: null,
propertyInfos: [{
name: 'offer',
minOccurs: 0,
maxOccurs: 20,
collection: true,
elementName: 'Offer',
typeInfo: '.GetLowestPricedOffersForASINResult.Offers.Offer'
}]
}, {
localName: 'GetLowestPricedOffersErrorType',
propertyInfos: [{
name: 'code',
elementName: 'Code'
}, {
name: 'type',
required: true,
elementName: 'Type'
}, {
name: 'message',
required: true,
elementName: 'Message'
}, {
name: 'marketplaceID',
required: true,
attributeName: {
localPart: 'MarketplaceID'
},
type: 'attribute'
}, {
name: 'sku',
attributeName: {
localPart: 'SKU'
},
type: 'attribute'
}, {
name: 'asin',
attributeName: {
localPart: 'ASIN'
},
type: 'attribute'
}, {
name: 'itemCondition',
required: true,
attributeName: {
localPart: 'ItemCondition'
},
type: 'attribute'
}, {
name: 'status',
required: true,
attributeName: {
localPart: 'status'
},
type: 'attribute'
}]
}, {
localName: 'ProductList',
propertyInfos: [{
name: 'product',
required: true,
collection: true,
elementName: 'Product',
typeInfo: '.ProductType'
}]
}, {
localName: 'PriceType',
propertyInfos: [{
name: 'landedPrice',
elementName: 'LandedPrice',
typeInfo: '.MoneyType'
}, {
name: 'listingPrice',
required: true,
elementName: 'ListingPrice',
typeInfo: '.MoneyType'
}, {
name: 'shipping',
elementName: 'Shipping',
typeInfo: '.MoneyType'
}]
}, {
localName: 'Points',
propertyInfos: [{
name: 'pointsNumber',
required: true,
elementName: 'PointsNumber',
typeInfo: 'Integer'
}]
}, {
localName: 'IdentifierType',
propertyInfos: [{
name: 'marketplaceASIN',
required: true,
elementName: 'MarketplaceASIN',
typeInfo: '.MarketplaceASINType'
}, {
name: 'skuIdentifier',
elementName: 'SKUIdentifier',
typeInfo: '.SellerSKUIdentifier'
}]
}, {
localName: 'ResponseMetadata',
typeName: {
namespaceURI: 'http:\/\/localhost:8000\/ListMatchingProductsResponse.xsd',
localPart: 'ResponseMetadata'
},
propertyInfos: [{
name: 'requestId',
required: true,
elementName: {
localPart: 'RequestId',
namespaceURI: 'http:\/\/localhost:8000\/ListMatchingProductsResponse.xsd'
}
}]
}, {
localName: 'VariationParentType',
baseTypeInfo: '.BaseRelationshipType'
}, {
localName: 'OfferCountType.OfferCount',
typeName: null,
propertyInfos: [{
name: 'value',
typeInfo: 'Integer',
type: 'value'
}, {
name: 'condition',
required: true,
attributeName: {
localPart: 'condition'
},
type: 'attribute'
}, {
name: 'fulfillmentChannel',
required: true,
attributeName: {
localPart: 'fulfillmentChannel'
},
type: 'attribute'
}]
}, {
type: 'enumInfo',
localName: 'FulfillmentChannelType',
values: ['Amazon', 'Merchant']
}, {
type: 'enumInfo',
localName: 'ConditionType',
values: ['New', 'Used', 'Collectible', 'Refurbished', 'Club']
}, {
type: 'enumInfo',
localName: 'ErrorCode',
values: ['InvalidParameterValue']
}, {
type: 'enumInfo',
localName: 'ErrorType',
values: ['Sender', 'Receiver']
}, {
type: 'enumInfo',
localName: 'AvailabilityType',
values: ['NOW', 'FUTURE_WITHOUT_DATE', 'FUTURE_WITH_DATE']
}],
elementInfos: [{
elementName: 'AttributeSet',
typeInfo: '.AttributeSetType'
}, {
elementName: 'Products',
typeInfo: '.ProductList'
}, {
elementName: 'VariationParent',
typeInfo: '.VariationParentType',
substitutionHead: 'BaseRelationship'
}, {
elementName: 'Product',
typeInfo: '.ProductType'
}, {
elementName: 'BaseRelationship',
typeInfo: '.BaseRelationshipType'
}, {
elementName: 'Identifiers',
typeInfo: '.IdentifierType'
}]
};
return {
ListMatchingProductsResponse: ListMatchingProductsResponse
};
};
if (typeof define === 'function' && define.amd) {
define([], ListMatchingProductsResponse_Module_Factory);
}
else {
var ListMatchingProductsResponse_Module = ListMatchingProductsResponse_Module_Factory();
if (typeof module !== 'undefined' && module.exports) {
module.exports.ListMatchingProductsResponse = ListMatchingProductsResponse_Module.ListMatchingProductsResponse;
}
else {
var ListMatchingProductsResponse = ListMatchingProductsResponse_Module.ListMatchingProductsResponse;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
targetNamespace="http://mws.amazonservices.com/schema/Products/2011-10-01"
elementFormDefault="qualified"
xmlns:tns="http://mws.amazonservices.com/schema/Products/2011-10-01"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:product="http://mws.amazonservices.com/schema/Products/2011-10-01">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd" />
<xsd:include schemaLocation="http://g-ecx.images-amazon.com/images/G/01/mwsportal/doc/en_US/products/ProductsAPI_Response.xsd"/>
<xsd:element name="ListMatchingProductsResponse"
type="tns:ListMatchingProductsResponse"/>
<xsd:complexType name="ListMatchingProductsResult">
<xsd:complexContent>
<xsd:restriction base="xsd:anyType">
<xsd:sequence>
<xsd:element name="Products"
type="product:ProductList"
minOccurs="0"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ResponseMetadata">
<xsd:complexContent>
<xsd:restriction base="xsd:anyType">
<xsd:sequence>
<xsd:element name="RequestId"
type="xsd:string"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ListMatchingProductsResponse">
<xsd:complexContent>
<xsd:restriction base="xsd:anyType">
<xsd:sequence>
<xsd:element name="ListMatchingProductsResult"
type="tns:ListMatchingProductsResult"
minOccurs="0"/>
<xsd:element name="ResponseMetadata"
type="tns:ResponseMetadata"
minOccurs="0"/>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<?xml version="1.0" encoding="UTF-8"?>
<ListMatchingProductsResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01">
<ListMatchingProductsResult>
<Products xmlns:ns2="http://mws.amazonservices.com/schema/Products/2011-10-01/default.xsd">
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01JRNX5XO</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Rockfield</ns2:Brand>
<ns2:Color>White-Gold</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Material: Synthetic leather</ns2:Feature>
<ns2:Feature>LifeStyle: Casual</ns2:Feature>
<ns2:Feature>Inner Matreial: Fabric</ns2:Feature>
<ns2:Feature>Sole:TPR Sole</ns2:Feature>
<ns2:Feature>Care Instructions: Clean your shoes with leather cleaner or leather shampoo, and use a good quality brush to remove loose surface dirt. If your shoes are wet after cleaning, let them air-dry before your proceed with the next step. Dry shoes in room temperature only and never expose them to the sun. Heat from the sun will cause the leather to shrink, wrinkle, harden, dry, and crack.</ns2:Feature>
<ns2:ItemDimensions>
<ns2:Weight Units="pounds">2.31</ns2:Weight>
</ns2:ItemDimensions>
<ns2:MaterialType>Faux leather</ns2:MaterialType>
<ns2:PackageDimensions>
<ns2:Height Units="inches">4.53</ns2:Height>
<ns2:Length Units="inches">12.13</ns2:Length>
<ns2:Width Units="inches">8.43</ns2:Width>
<ns2:Weight Units="pounds">2.31</ns2:Weight>
</ns2:PackageDimensions>
<ns2:PackageQuantity>1</ns2:PackageQuantity>
<ns2:PartNumber>RFD-8000-7</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Size>7 UK</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/41GfCZoPj1L._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">65</ns2:Height>
<ns2:Width Units="pixels">75</ns2:Width>
</ns2:SmallImage>
<ns2:Title>Rockfield Classic White-Gold Synthetic Leather Casual Shoes (7 UK)</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01JRNX5PM</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B018IWE94O</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Afrojack</ns2:Brand>
<ns2:Color>Beige</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Material: Synthetic</ns2:Feature>
<ns2:Feature>Lifestyle: Casual</ns2:Feature>
<ns2:Feature>Closure Type: Lace-Up</ns2:Feature>
<ns2:Feature>Complete Outdoor Shoes</ns2:Feature>
<ns2:Feature>Product warranty against manufacturing defects: 30 Days</ns2:Feature>
<ns2:ItemDimensions>
<ns2:Height Units="inches">4.72</ns2:Height>
<ns2:Length Units="inches">7.87</ns2:Length>
<ns2:Width Units="inches">3.54</ns2:Width>
<ns2:Weight Units="pounds">1.32</ns2:Weight>
</ns2:ItemDimensions>
<ns2:Label>Afrojack</ns2:Label>
<ns2:Manufacturer>Afrojack</ns2:Manufacturer>
<ns2:MaterialType>synthetic</ns2:MaterialType>
<ns2:NumberOfItems>1</ns2:NumberOfItems>
<ns2:PackageQuantity>1</ns2:PackageQuantity>
<ns2:PartNumber>tree-beige-10</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Afrojack</ns2:Publisher>
<ns2:Size>10</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/51CqmYVbgIL._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">55</ns2:Height>
<ns2:Width Units="pixels">75</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Afrojack</ns2:Studio>
<ns2:Title>Afrojack Men's Beige Synthetic Leather Casual Shoes - 10</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01C8KTGIQ</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01FZMB3MQ</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Surplus</ns2:Brand>
<ns2:Color>Tan</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Men's Casual Shoes</ns2:Feature>
<ns2:Label>Surplus</ns2:Label>
<ns2:Manufacturer>Surplus</ns2:Manufacturer>
<ns2:MaterialType>Faux leather</ns2:MaterialType>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Surplus</ns2:Publisher>
<ns2:Size>7</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/31Qv%2B8ugLJL._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">75</ns2:Height>
<ns2:Width Units="pixels">64</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Surplus</ns2:Studio>
<ns2:Title>Surplus Men Tan Synthetic Leather Casual Shoes-7</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01FZMB1PA</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01DKO8O28</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Rockfield</ns2:Brand>
<ns2:Color>Tan</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Outer Material: Synthetic Leather</ns2:Feature>
<ns2:Feature>Sole Material: TPR</ns2:Feature>
<ns2:Feature>Closure: Laced</ns2:Feature>
<ns2:Feature>Toe Style: Pointed</ns2:Feature>
<ns2:Feature>Product colour may slightly vary due to photographic lighting sources or your monitor settings.</ns2:Feature>
<ns2:ItemDimensions>
<ns2:Weight Units="pounds">2.47</ns2:Weight>
</ns2:ItemDimensions>
<ns2:Label>Rockfield</ns2:Label>
<ns2:Manufacturer>Rockfield</ns2:Manufacturer>
<ns2:MaterialType>mesh</ns2:MaterialType>
<ns2:PackageDimensions>
<ns2:Height Units="inches">4.29</ns2:Height>
<ns2:Length Units="inches">12.40</ns2:Length>
<ns2:Width Units="inches">8.11</ns2:Width>
<ns2:Weight Units="pounds">2.47</ns2:Weight>
</ns2:PackageDimensions>
<ns2:PackageQuantity>1</ns2:PackageQuantity>
<ns2:PartNumber>RFD-CARBON-TAN-9</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Rockfield</ns2:Publisher>
<ns2:Size>9 UK</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/51SSyXkkDLL._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">75</ns2:Height>
<ns2:Width Units="pixels">64</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Rockfield</ns2:Studio>
<ns2:Title>Rockfield Men's Synthetic Leather Casual Shoes (9 UK, Tan)</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01DKO8NV0</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B0199YF9NA</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>I Sole</ns2:Brand>
<ns2:Color>Beige</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Formal Shoes</ns2:Feature>
<ns2:Feature>Comfortable</ns2:Feature>
<ns2:Feature>Stylish</ns2:Feature>
<ns2:Feature>Light Weight</ns2:Feature>
<ns2:Feature>Beige</ns2:Feature>
<ns2:Label>RD Globalite</ns2:Label>
<ns2:Manufacturer>RD Globalite</ns2:Manufacturer>
<ns2:Model>IS2017CS</ns2:Model>
<ns2:PackageDimensions>
<ns2:Height Units="inches">3.54</ns2:Height>
<ns2:Length Units="inches">11.42</ns2:Length>
<ns2:Width Units="inches">6.69</ns2:Width>
<ns2:Weight Units="pounds">1.76</ns2:Weight>
</ns2:PackageDimensions>
<ns2:PartNumber>IS2017CS-AZ8</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>RD Globalite</ns2:Publisher>
<ns2:Size>8</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://g-ecx.images-amazon.com/images/G/31/x-site/icons/no-img-sm._CB138359930_.gif</ns2:URL>
<ns2:Height Units="pixels">40</ns2:Height>
<ns2:Width Units="pixels">60</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>RD Globalite</ns2:Studio>
<ns2:Title>I Sole Beige Faux Leather Casual Shoes IS2017CS-AZ8</ns2:Title>
<ns2:Warranty>Product warranty against manufacturing defects: 15 days</ns2:Warranty>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B0199YF7CI</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01H378B5S</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Kraasa</ns2:Brand>
<ns2:Color>Tan</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Material : Patent Leather</ns2:Feature>
<ns2:Feature>Design : Decent OfficeWear</ns2:Feature>
<ns2:Feature>Sole : TPR</ns2:Feature>
<ns2:Feature>Occasion : Officewear, PartyWear, Casual</ns2:Feature>
<ns2:Feature>This pair is crafted with the best Patent Leather and detailed stiching. Breathable outer surface and a sturdy sole to ensure comfort and support.</ns2:Feature>
<ns2:ItemDimensions>
<ns2:Height Units="inches">8.00</ns2:Height>
<ns2:Length Units="inches">12.00</ns2:Length>
<ns2:Width Units="inches">5.00</ns2:Width>
<ns2:Weight Units="pounds">0.88</ns2:Weight>
</ns2:ItemDimensions>
<ns2:Label>Kraasa</ns2:Label>
<ns2:Manufacturer>Kraasa</ns2:Manufacturer>
<ns2:MaterialType>Leather</ns2:MaterialType>
<ns2:Model>905-TAN</ns2:Model>
<ns2:PackageDimensions>
<ns2:Height Units="inches">4.33</ns2:Height>
<ns2:Length Units="inches">12.60</ns2:Length>
<ns2:Width Units="inches">7.87</ns2:Width>
<ns2:Weight Units="pounds">1.43</ns2:Weight>
</ns2:PackageDimensions>
<ns2:PartNumber>905-TAN-7</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Kraasa</ns2:Publisher>
<ns2:Size>7</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/51lpDiiPvwL._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">75</ns2:Height>
<ns2:Width Units="pixels">75</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Kraasa</ns2:Studio>
<ns2:Title>Kraasa Decent Look Patent Leather Casual Shoes Tan UK 7 905-TAN-7</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01H3787RK</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01L76BREI</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Kraasa</ns2:Brand>
<ns2:Color>Grey</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Material : Synthetic Leather</ns2:Feature>
<ns2:Feature>Design : Solid</ns2:Feature>
<ns2:Feature>Sole : TPR</ns2:Feature>
<ns2:Feature>Premium Quality</ns2:Feature>
<ns2:Feature>Casual Shoes</ns2:Feature>
<ns2:ItemDimensions>
<ns2:Height Units="inches">6.00</ns2:Height>
<ns2:Length Units="inches">10.00</ns2:Length>
<ns2:Width Units="inches">5.00</ns2:Width>
<ns2:Weight Units="pounds">0.99</ns2:Weight>
</ns2:ItemDimensions>
<ns2:Label>Kraasa</ns2:Label>
<ns2:Manufacturer>Kraasa</ns2:Manufacturer>
<ns2:MaterialType>Faux leather</ns2:MaterialType>
<ns2:Model>846-GreyBlue</ns2:Model>
<ns2:PackageDimensions>
<ns2:Height Units="inches">4.33</ns2:Height>
<ns2:Length Units="inches">12.60</ns2:Length>
<ns2:Width Units="inches">7.87</ns2:Width>
<ns2:Weight Units="pounds">1.43</ns2:Weight>
</ns2:PackageDimensions>
<ns2:PartNumber>846-GreyBlue-9</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Kraasa</ns2:Publisher>
<ns2:Size>9</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/41IoQWSbvDL._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">75</ns2:Height>
<ns2:Width Units="pixels">75</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Kraasa</ns2:Studio>
<ns2:Title>Kraasa 846 Velcro Casual Shoes Synthetic Leather GreyBlue UK 9</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01L76BKNQ</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01CL9H7IA</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Red Rose</ns2:Brand>
<ns2:Color>Brown</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Brand - Red Rose</ns2:Feature>
<ns2:Feature>Material:Synthetic Leather</ns2:Feature>
<ns2:Feature>Lifestyle: Casual</ns2:Feature>
<ns2:Feature>Closure Type: Lace Up</ns2:Feature>
<ns2:Feature>Product colour may slightly vary due to photographic lighting sources or your monitor settings.</ns2:Feature>
<ns2:ItemDimensions>
<ns2:Height Units="inches">4.72</ns2:Height>
<ns2:Length Units="inches">7.87</ns2:Length>
<ns2:Width Units="inches">3.15</ns2:Width>
<ns2:Weight Units="pounds">1.10</ns2:Weight>
</ns2:ItemDimensions>
<ns2:Label>Red Rose</ns2:Label>
<ns2:Manufacturer>Red Rose</ns2:Manufacturer>
<ns2:MaterialType>Synthetic Leather</ns2:MaterialType>
<ns2:Model>69 TAN-10</ns2:Model>
<ns2:PackageDimensions>
<ns2:Height Units="inches">4.13</ns2:Height>
<ns2:Length Units="inches">12.20</ns2:Length>
<ns2:Width Units="inches">8.62</ns2:Width>
<ns2:Weight Units="pounds">2.49</ns2:Weight>
</ns2:PackageDimensions>
<ns2:PartNumber>69 TAN-10</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Red Rose</ns2:Publisher>
<ns2:Size>10</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/51HdS4nJN0L._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">75</ns2:Height>
<ns2:Width Units="pixels">64</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Red Rose</ns2:Studio>
<ns2:Title>Red Rose Men's Tan Synthetic Leather Casual Shoe (10Uk)</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01CL9H5TQ</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B016MBPQZO</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Marshal</ns2:Brand>
<ns2:Color>Tan</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Material: Synthetic</ns2:Feature>
<ns2:Feature>Colour: Tan</ns2:Feature>
<ns2:Feature>Toes Style: Round Toe; Closure Type: Lace Up</ns2:Feature>
<ns2:Feature>Occasion: Casual</ns2:Feature>
<ns2:Feature>Sole Material: Airmax</ns2:Feature>
<ns2:Label>Marshal</ns2:Label>
<ns2:Manufacturer>Marshal</ns2:Manufacturer>
<ns2:MaterialType>synthetic</ns2:MaterialType>
<ns2:Model>MIKF2251BG</ns2:Model>
<ns2:PackageQuantity>1</ns2:PackageQuantity>
<ns2:PartNumber>MIKF2251TN_11</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Marshal</ns2:Publisher>
<ns2:Size>11</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/51Z7bTHf6rL._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">52</ns2:Height>
<ns2:Width Units="pixels">75</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Marshal</ns2:Studio>
<ns2:Title>Marshal Bigmen Men's Tan Synthetic Leather Outdoor Casual Shoes - 11 UK</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B01859NXGA</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
<Product>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B00W0ZOUB8</ASIN>
</MarketplaceASIN>
</Identifiers>
<AttributeSets>
<ns2:ItemAttributes xml:lang="en-IN">
<ns2:Binding>Apparel</ns2:Binding>
<ns2:Brand>Kraasa</ns2:Brand>
<ns2:Color>Black</ns2:Color>
<ns2:Department>mens</ns2:Department>
<ns2:Feature>Category: Shoes for Men</ns2:Feature>
<ns2:Feature>Material: Leather</ns2:Feature>
<ns2:Feature>Colour: Black</ns2:Feature>
<ns2:Feature>Occasion : Office, Party</ns2:Feature>
<ns2:ItemDimensions>
<ns2:Height Units="inches">8.00</ns2:Height>
<ns2:Length Units="inches">12.00</ns2:Length>
<ns2:Width Units="inches">5.00</ns2:Width>
<ns2:Weight Units="pounds">0.88</ns2:Weight>
</ns2:ItemDimensions>
<ns2:Label>Kraasa</ns2:Label>
<ns2:Manufacturer>Kraasa</ns2:Manufacturer>
<ns2:MaterialType>Leather</ns2:MaterialType>
<ns2:Model>K-1018-Black-7</ns2:Model>
<ns2:PackageDimensions>
<ns2:Height Units="inches">4.33</ns2:Height>
<ns2:Length Units="inches">12.60</ns2:Length>
<ns2:Width Units="inches">7.87</ns2:Width>
<ns2:Weight Units="pounds">1.43</ns2:Weight>
</ns2:PackageDimensions>
<ns2:PartNumber>K-1018-Black-7</ns2:PartNumber>
<ns2:ProductGroup>Shoes</ns2:ProductGroup>
<ns2:ProductTypeName>SHOES</ns2:ProductTypeName>
<ns2:Publisher>Kraasa</ns2:Publisher>
<ns2:Size>7</ns2:Size>
<ns2:SmallImage>
<ns2:URL>http://ecx.images-amazon.com/images/I/311vn1i6W2L._SL75_.jpg</ns2:URL>
<ns2:Height Units="pixels">59</ns2:Height>
<ns2:Width Units="pixels">75</ns2:Width>
</ns2:SmallImage>
<ns2:Studio>Kraasa</ns2:Studio>
<ns2:Title>Kraasa Men'S Black Patent Leather Formal Shoes(Size: 7)</ns2:Title>
</ns2:ItemAttributes>
</AttributeSets>
<Relationships>
<VariationParent>
<Identifiers>
<MarketplaceASIN>
<MarketplaceId>OBFUSCATED</MarketplaceId>
<ASIN>B00W0ZOMXY</ASIN>
</MarketplaceASIN>
</Identifiers>
</VariationParent>
</Relationships>
<SalesRankings />
</Product>
</Products>
</ListMatchingProductsResult>
<ResponseMetadata>
<RequestId>ac8b46fc-0ae0-46f1-a9c8-358ce7acdfa6</RequestId>
</ResponseMetadata>
</ListMatchingProductsResponse>
var ListMatchingProductsResponse = require('mappings/ListMatchingProductsResponse').ListMatchingProductsResponse;
var Jsonix = require('jsonix').Jsonix;
var context = new Jsonix.Context([ListMatchingProductsResponse]);
var unmarshaller = context.createUnmarshaller();
unmarshaller.unmarshalFile('sample-response.xml',
function (unmarshalled) {
console.log('unmarshalled:', unmarshalled);
console.log('unmarshalled.value:', unmarshalled.value);
console.log('unmarshalled.value.products:', unmarshalled.value.products);
console.log('unmarshalled.value.products.product[1]:', unmarshalled.value.products.product[1]);
/**
* Uncaught Error:
* Element [{http://mws.amazonservices.com/schema/Products/2011-10-01}ListMatchingProductsResponse]
* could not be unmarshalled as is not known in this context
* and the property does not allow DOM content.
*/
});
});
var fs = require('fs');
var path = require('path');
var util = require('util');
var xml4js = require('xml4js');
// Most of xml2js options should still work
var options = {downloadSchemas: true};
var parser = new xml4js.Parser(options);
var schemaFile = path.join(__dirname, 'mappings/ListMatchingProductsResponse.xsd');
var schema = fs.readFileSync(schemaFile, {encoding: 'utf-8'});
parser.addSchema('http://localhost:8000/ListMatchingProductsResponse.xsd', schema, function (err, importsAndIncludes) {
fs.readFile('sample-response.xml', {}, function(err, data) {
if (err) {
throw err;
} else {
var xml = data.toString();
console.log('xml', xml);
// importsAndIncludes contains schemas to be added as well to satisfy all imports and includes found in ListMatchingProductsResponse.xsd
parser.parseString(xml, function (err, result) {
if (err) {
console.error('err:', err);
}
console.log('result:', result);
console.log('util.inspect:', util.inspect(result, false, null));
/**
* FAILS with:
* Uncaught Element ({http://mws.amazonservices.com/schema/Products/2011-10-01}ListMatchingProductsResponse)
* does not match schema,
* xpath: /{http://mws.amazonservices.com/schema/Products/2011-10-01}ListMatchingProductsResponse/{http://mws.amazonservices.com/schema/Products/2011-10-01}ListMatchingProductsResult/{http://mws.amazonservices.com/schema/Products/2011-10-01}Products/{http://mws.amazonservices.com/schema/Products/2011-10-01}Product/{http://mws.amazonservices.com/schema/Products/2011-10-01}Identifiers/{http://mws.amazonservices.com/schema/Products/2011-10-01}MarketplaceASIN/{http://mws.amazonservices.com/schema/Products/2011-10-01}ASIN, allowed elements: {}
*/
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment