"Conversion to base64Binary failed" Error using MapForce to POST to Web Service

186 Views Asked by At

In Altova MapForce, when sending XML to the Body of an HTTP POST (a Web Service call) through a mime-entity function, it generates an error "Conversion to base64Binary failed for '<?xml...'". How do I send XML from a string into a web service call Body connector without generating that error?

MapForce map showing XML string being sent to POST and generating error

1

There are 1 best solutions below

0
Riley Major On

The mime-entity function expects binary data which is Base64-encoded. That encoding can be performed using the charset-encode function with a suitable encoding such as "utf-8".

MapForce map showing charset-encode function encoding data for mime-entity function