Open dmitri-vlasov opened 8 years ago
I have the same issue as well. I pass this and getting 20170, Schema XML request error. Schema XML request error: SimpleDeserializer encountered a child element
itemDetail={ "ErrorLanguage": "en_US", "WarningLevel": "High", "Item": { "Title": "57.123mm Jadeite Jade Bangle", "PrimaryCategory": { "CategoryID": "50637" }, "Description": "
Jade Bangle Descriptiion
", "InventoryTrackingMethod":"SKU", "SKU":"Test0003", "StartPrice": "1000.0", "CategoryMappingAllowed": "true", "ConditionID": "1000", "Country": "SG", "Currency": "USD", "DispatchTimeMax": "1", "ListingDuration": "Days_30", "ListingType": "FixedPriceItem", "PaymentMethods": "PayPal", "PayPalEmailAddress": "xxxxxxx@gmail.com", "PictureDetails": { "GalleryType": "Gallery" }, "PostalCode": "120605", "Location":"Singapore", "ItemSpecifics":{ "NameValueList":{"Brand":"Ultimate Jadeite"}, "NameValueList":{"Metal": "Not Applicable"}, #"Style": "Bangle",
#"Color": "Green",
#"MainStoneTreatment": "Not Enhanced",
},
#"ProductListingDetails": {},
"Quantity": "1",
"ReturnPolicy": {
"ReturnsAcceptedOption": "ReturnsAccepted",
"RefundOption": "MoneyBack",
"ReturnsWithinOption": "Days_14",
"Description": "If you are not satisfied, return the item for refund.",
"ShippingCostPaidByOption": "Buyer"
},
"ShippingDetails": {
"ShippingType": "Flat",
"ShippingServiceOptions": {
"ShippingServicePriority": "1",
"ShippingService": "UPSGround",
"FreeShipping": "true",
"ShippingServiceAdditionalCost": {
"-currencyID": "USD",
"#text": "0.00"
}
}
},
"Site": "US"
}
}
Just found out that the html need to pass with XML escape sequence..
example <b> Item Description </b> ==> "<b> Item Description </b>"
Hello,
I've tried to use HTML in Description as stated here:
https://github.com/timotheus/ebaysdk-python/issues/110
But none of my attempts were successful. Even the example text of
"Description": "<![CDATA[Since this is a CDATA section I can use all sorts of reserved characters like \" and & or write things like <foo></bar>but my document is still well formed! ]]>",
and the simplest things like:
<div>Some info</div>
generated an error:
That's my test info:
How to use it with HTML correctly? Thank you.