Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Answered

BC API with XML Response/Request

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.

Categories:
  • 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,023 Moderator 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,744 Moderator 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,023 Moderator on at
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,023 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans