Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

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.

  • Dixonsamuel Profile Picture
    Dixonsamuel 60 on at
    RE: BC API with XML Response/Request

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: BC API with XML Response/Request

    Hi,

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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: BC API with XML Response/Request

    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.

  • Dixonsamuel Profile Picture
    Dixonsamuel 60 on at
    RE: BC API with XML Response/Request

    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
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: BC API with XML Response/Request

    Hi Dixonsamuel ,

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

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans