HTTP request with XML body

Hello guys. Im asking for assistance with the XML body. I tried the API call using postman, everything worked. The api call that im trying to do is Ebay API GetSellerList. The headers look like this:


And the body looks like this:

"xmlRequestBody = ""<?xml version=""1.0"" encoding=""utf-8""?>" +
"<GetSellerListRequest xmlns=""urn:ebay:apis:eBLBaseComponents"">" +
"  <RequesterCredentials>" +
"    <eBayAuthToken>TOKEN</eBayAuthToken>" +
"  </RequesterCredentials>" +
"  <ErrorLanguage>en_US</ErrorLanguage>" +
"  <WarningLevel>High</WarningLevel>" +
"  <DetailLevel>ReturnAll</DetailLevel>" +
"  <StartTimeFrom>2023-01-01T20:34:44.000Z</StartTimeFrom>" +
"  <StartTimeTo>2023-01-31T20:34:44.000Z</StartTimeTo>" +
"  <Pagination>" +
"    <EntriesPerPage>25</EntriesPerPage>" +
"    <PageNumber>1</PageNumber>" +
"  </Pagination>" +
"</GetSellerListRequest>"

But I keep getting this error:

<?xml version="1.0" encoding="UTF-8" ?><GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents"><Timestamp>2024-03-18 13:33:43</Timestamp><Ack>Failure</Ack><Errors><ShortMessage>Unsupported API call.</ShortMessage><LongMessage>The API call "GeteBayOfficialTime" is invalid or not supported in this release.</LongMessage><ErrorCode>2</ErrorCode><SeverityCode>Error</SeverityCode><ErrorClassification>RequestError</ErrorClassification></Errors><Build>19110890</Build></GeteBayOfficialTimeResponse>

Any tips? Maybe u guys see what Im doing wrong. Thanks in advance :slight_smile:

The problem was the headers…I have set them to GetOrPost, not HttpHeader… :smiley:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.