Please provide an example of how to create a REST API which accepts XML input. The API call is external and limits the input format to XML. I’m not sure how to build the body of the request and receiving ERROR 415: Backend Unsupported Media Type
Which as I understand, means the content type and input do not match. Any assistance will be appreciated thanks! Attached an image of the request body
If 500 status code returned in response from Postman , I guess there is some problem with the Server responding correctly. Even Uipath will return same 500 error code.
As such, when you compare the output of Studio POST request and Postman POST request, the accept header that reaches the server when sent via Studio is different.
I’m now acquiring an “illegal character” error. Noticed on the stackoverflow forum that Base64 encoding uses some characters that are not allowed in URL query parameter values (‘/’ and ‘+’). To avoid this, pass Base64.URL_SAFE as the second parameter to Base64.encodeToString() instead of Base64.DEFAULT .
So wondering if it has to do with the ‘+’ sign in the content-type/Accept format
Thanks for your efforts! From a maintenance perspective, the recommendation is to use UiPath activities so I hope the bug is resolved soon. Please can assist with writing the invoke activity - I’ll try to find a forum as well since this is my first time using it.
Note that the API credentials are publicly on the Canada Post developer program