web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Creating and interacting with an OData V4 unbound action

(1) ShareShare
ReportReport
Posted on by 10
Hello,
 
I want to send an xml file (in a text parameter) to a codeunit procedure which is published as a webservice
 
 
Similar to this wel known procedure, except the "InputJson: Text", needs to be an "inputXml: text" parameter
procedure GetLengthOfStringWithConfirmation(inputJson: Text): Integer
 
I try this in Postman
But I get the error: "A supported MIME type could not be found that matches the content type of the response"
The xml is in the body below.
 
Thanks for helping
I have the same question (0)
  • Verified answer
    SidharthanCP Profile Picture
    22 on at
    Hi, 
        XML files cannot be directly sent as text files via webservice, rather you can convert them as base64 string and send that via Webservice.
    To convert your XML file stored in a field into Base64 string you can use the Standard Base 64 CodeUnit and to decode them in your end system, you can use any online 'Base64 to XML Converter' or implement the conversion logic yourself by using mime type as 'text/plain' or 'application/xml'. Thank you.

    Regards,
    Sidharthan 
    Congruent Info-tech - https://www.congruentsoft.com/
  • JS-22122025-0 Profile Picture
    10 on at
    Thanks!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,028 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,366 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,175 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans