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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

BC API with XML Response/Request

(0) ShareShare
ReportReport
Posted on by 60

Hi, anyone tried using BC API  with XML request and response?

We're more familiar with using JSON instead, however, got a request that might need to use XML type instead to trigger via API.

Anyone tried and have samples or is this possible to be done?

via API or XMLport in API etc?

Thank you.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi Dixonsamuel ,

    Yes there is a way you can use API with XMLport in BC.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
  • Dixonsamuel Profile Picture
    60 on at

    Hi Verma, thanks for the reply.

    However, my requirement is using XML data format to consume BC API instead.

    The article seems to depict creating XML data and consuming external web services instead.

    Was wondering if you have any sample of XML data to consume BC API?

    such as creating an XML data and consuming a BC API to create a sales order?

    Thank you.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    The  Standard API's are Json/Rest based so you can not use xml to consume them.

    You could customize API's that could take XML as a request but i don't think that is best practice these days.

  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at

    Hi,

    In that case you have to use and consume SOAP API.

  • Dixonsamuel Profile Picture
    60 on at

    Thanks, have told the vendor to proceed with JSON instead.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans