2017-01-24 3 views
0

Amazon MWS를 사용하여 제품을 업로드하려고합니다.Amazon 제품 변형 업로드

<Message> 
    <MessageID>3933</MessageID> 
    <OperationType>PartialUpdate</OperationType> 
    <Product> 
     <SKU>EL01080-CC</SKU> 
     <StandardProductID> 
      <Type>EAN</Type> 
      <Value>8435405918599</Value> 
     </StandardProductID>   
     <Condition> 
      <ConditionType>New</ConditionType> 
     </Condition> 
     <DescriptionData> 
      <Title><![CDATA[Power Hair X5 Maquillaje capilar indetectable para calvicie. Bote de 25g , color castaño claro]]></Title> 
      <Brand><![CDATA[PowerHair]]></Brand> 
      <Description><![CDATA[Gama de colores...]]></Description> 
      <Manufacturer><![CDATA[PowerHair]]></Manufacturer> 
      <MfrPartNumber><![CDATA[EL01080-CC]]></MfrPartNumber> 
      <RecommendedBrowseNode>2928542031</RecommendedBrowseNode> 
     </DescriptionData> 
     <ProductData><Home> 
       <Parentage>child</Parentage> 
       <VariationData> 
        <VariationTheme>Size-Color</VariationTheme> 
       </VariationData> 
       <Size>Medium</Size> 
       <Color>Dark Grey Melange</Color> 
      </Home></ProductData> 
    </Product> 
</Message> 

그리고 나는 다음과 같은 오류가 점점 오전 : 나는 ProducData 태그를 제거하면

XML Parsing Error at Line 145520, Column 11: cvc-complex-type.2.4.a: Invalid content was found starting with element &"Size&". One of &"{BatteryDescription, CanShipInOriginalContainer, CountryAsLabeled, CountryOfOrigin, CountryProducedIn, ImportDesignation, FurDescription, IdentityPackageType, IncludedComponents, FabricType, PatternName, SeatHeight, SpecialFeatures, StyleName, Occasion, MatteStyle, DisplayLength, DisplayWidth, DisplayHeight, DisplayDepth, DisplayDiameter, DisplayVolume, DisplayWeight, ItemPackageQuantity, ManufacturerWarrantyDescription, Volume, VolumeCapacity, Material, ThreadCount, NumberOfPieces, SafetyWarning, AwardsWon, BatteryAverageLife, BatteryAverageLifeStandby, BatteryChargeTime, BatteryTypeLithiumIon, BatteryTypeLithiumMetal, LithiumBatteryEnergyContent, LithiumBatteryPackaging, LithiumBatteryVoltage, LithiumBatteryWeight, MfgWarrantyDescriptionLabor, MfgWarrantyDescriptionParts, MfgWarrantyDescriptionType, NumberOfItemsInPackage, NumberOfLithiumIonCells, NumberOfLithiumMetalCells, PowerSourceType, RegionOfOrigin, SellerWarrantyDescription, SizeMap, Warnings, Wattage, Length, Width, Height, Depth, Diameter, Weight, Spread, SunlightExposure, MoistureNeeds, USDAHardinessZone, SunsetClimateZone, NumberOfSets}&" is expected. 

내가 문제 우유없는 업로드 할 수 있습니다 내 코드는 다음과 같다. 이 유사 콘텐츠로 어떻게 업로드 할 수 있습니까? 어떻게하는지에 대한 적절한 문서를 찾지 못했습니다. 크기 및 색상 태그에 문제가 있습니다.

+0

변형이있는 게시 제품의 예시 본문을 가져와야합니다. 저를 도와주세요. –

답변

3

XML이 유효하지 않습니다. <Size><Color> 태그는 <VariationData> 내에 중첩되어야합니다.

<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd"> 
    <Header> 
     <DocumentVersion>1.01</DocumentVersion> 
     <MerchantIdentifier>YOURMERCHANTIDENTIFIER</MerchantIdentifier> 
    </Header> 
    <MessageType>Product</MessageType> 
    <PurgeAndReplace>false</PurgeAndReplace> 
    <Message> 
     <MessageID>3933</MessageID> 
     <OperationType>PartialUpdate</OperationType> 
     <Product> 
      <SKU>EL01080-CC</SKU> 
      <StandardProductID> 
       <Type>EAN</Type> 
       <Value>8435405918599</Value> 
      </StandardProductID>   
      <Condition> 
       <ConditionType>New</ConditionType> 
      </Condition> 
      <DescriptionData> 
       <Title><![CDATA[Power Hair X5 Maquillaje capilar indetectable para calvicie. Bote de 25g , color castaño claro]]></Title> 
       <Brand><![CDATA[PowerHair]]></Brand> 
       <Description><![CDATA[Gama de colores...]]></Description> 
       <Manufacturer><![CDATA[PowerHair]]></Manufacturer> 
       <MfrPartNumber><![CDATA[EL01080-CC]]></MfrPartNumber> 
       <RecommendedBrowseNode>2928542031</RecommendedBrowseNode> 
      </DescriptionData> 
      <ProductData> 
       <Home> 
        <Parentage>child</Parentage> 
        <VariationData> 
         <VariationTheme>Size-Color</VariationTheme> 
         <Size>Medium</Size> 
         <Color>Dark Grey Melange</Color> 
        </VariationData> 
       </Home> 
      </ProductData> 
     </Product> 
    </Message> 
</AmazonEnvelope> 

이 수정 된 XML 파일은 XSD 스키마에 대해 유효성을 검사 : 다음은 이동 추가 <AmazonEnvelope>, 다른 헤더 데이터와 언급 된 태그를 사용하여 XML의 복사본입니다.