Hello, I am aware that wappler’s API call module does not officially support SOAP/XML calls, but since the text body options is present I haven’t come across any issues yet, up until now. I have seen a similar post couple of years back using PHP, but since I’m using node, I thought I’d create a new one instead.
Basically what I am trying to do is make a POST call to ebay’s UploadSiteHostedPictures service, which is a traditional API SOAP or xml based call, with values:
Url: https://api.ebay.com/ws/api.dll
Text Data: <?xml version="1.0" encoding="utf-8"?> <UploadSiteHostedPicturesRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <ErrorLanguage>en_US</ErrorLanguage> <WarningLevel>High</WarningLevel> <!--Enter your ExternalPictureURL address --> <ExternalPictureURL>https://images.pexels.com/photos/1000366/pexels-photo-1000366.jpeg</ExternalPictureURL> <PictureName>Developer Page Banner</PictureName> </UploadSiteHostedPicturesRequest>
Headers: X-EBAY-API-SITEID:3
X-EBAY-API-COMPATIBILITY-LEVEL:967
X-EBAY-API-CALL-NAME:UploadSiteHostedPictures
X-EBAY-API-IAF-TOKEN:--TOKEN GOES HERE
P.S. Auth token isn’t require to reproduce the error, as the error happens before the post call is actually initiated.
And once I try to fetch or define schema it results to:
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2023-08-06T09:30:26.874Z
Failure
XML Parse error.
XML Error Text: "{0}".
5
Error
RequestError
0
mediasvcs-5.0.29_20230720192304011
2
`
Ebay documentation states that error is :
`
XML parse errors are typically caused by unrecognized characters. The offending characters are often hidden and were likely added inadvertently when copying content from another program into eBay. When you view the text in Notepad, the offending characters appear as small squares. Delete the squares, save the file, and resubmit the template to eBay.`
Wappler produces something similar
but presumably it’s the error at the wappler’s end, as Insomnia or POSTMAN returns data without any issues:
Now I wonder has anyone came across similar issue where ‘<’ value would not be recognised and whether there’s a workaround for it?
I am considering building separate axios script to create the very same call, however, in local environment axios has not returned anything through RunJS module, or nor the out of wappler hosted nodejs application, so I thought I’d ask whether anyone has any ideas before i jump into custom module/RunJS code rabbit hole.