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

UploadSiteHostedPictures error 5 XML Parse Error

I am receiving an XML Parse Error (error code 5) when trying to upload pictures to the eBay Picture Service.

 

Request:

<?xml version='1.0' encoding='utf8'?>

<UploadSiteHostedPicturesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>...</eBayAuthToken>
</RequesterCredentials>
<PictureSystemVersion>2</PictureSystemVersion>
<Version>0997</Version>
<WarningLevel>High</WarningLevel>
<ExternalPictureURL>...</ExternalPictureURL>
</UploadSiteHostedPicturesRequest>
 
Response:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<UploadSiteHostedPicturesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2025-03-23T11:36:19.331Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>XML Parse error.</ShortMessage>
<LongMessage>XML Error Text: "com.sun.xml.stream.xerces.xni.XNIException".</LongMessage>
<ErrorCode>5</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorParameters ParamID="0">
<Value>com.sun.xml.stream.xerces.xni.XNIException</Value>
</ErrorParameters>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>0</Version>
<Build>mediasvcs-6.0.0_20250319232658949</Build>
<PictureSystemVersion>2</PictureSystemVersion>
</UploadSiteHostedPicturesResponse>
 
I have been using the same code for years and have not modified it. Does anyone have any idea what is causing this error? It only started yesterday (22/03/2025).
Message 1 of 2
latest reply
1 REPLY 1

Re: UploadSiteHostedPictures error 5 XML Parse Error

eBay changed the xmlns string. The correct string has the word ebay with a double colon before and after instead of the ebay logo.

Message 2 of 2
latest reply