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

Unable to submit UploadSiteHostedPictures with Postman

I'm trying to understand the UploadSiteHostedPictures call using postman before migrating the login into my software. However, I can't seem to make the call work. I'm following exactly the documentation from the eBay API guide.  I keep getting the error :

<ShortMessage>XML Parse error.</ShortMessage>
<LongMessage>XML Error Text: "{0}".</LongMessage>
 
 

Here is what I have configured in Postman. Can someone see the issue and explain how to correct it please?

2023-09-04_20-42-35.png2023-09-04_20-41-53.png

 

2023-09-04_20-54-05.png

Here is the value of the attachment_xml variable:

<?xml version="1.0" encoding="UTF-8"?>
<UploadSiteHostedPicturesRequest xmlns="urnapis:eBLBaseComponents">
<PictureName>myphoto</PictureName>
<PictureSet>Standard</PictureSet>
<ExtensionInDays>0</ExtensionInDays>
</UploadSiteHostedPicturesRequest>

 

 

Message 1 of 2
latest reply
1 BEST ANSWER

Accepted Solutions

Unable to submit UploadSiteHostedPictures with Postman

I found the issue. The order of the form data is important. XML Payload must be before the image in the form body. I just inverted the two entries and it worked.

 

View Best Answer in original post

Message 2 of 2
latest reply
1 REPLY 1

Unable to submit UploadSiteHostedPictures with Postman

I found the issue. The order of the form data is important. XML Payload must be before the image in the form body. I just inverted the two entries and it worked.

 

Message 2 of 2
latest reply