Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Consume Soap Created in Business central

Posted on by 115

Hello Community First of all thanks for taking the time to read my question.

My question consists of the following:

In business central create a codeunit with a procedure called FindPaciente And publish that codeunit as a web service and I get something like this:

2768.Captura1.PNG

And I use the second link, after putting my username and password it shows me the following..

The objective of this CodeUnit is to send a Patient ID to a table that is created and returns me if it exists or not in the table with a true or false

pastedimage1646014320991v1.png

How can I put it to the test? I've been trying with the SoapUi Software but I can't succeed


It would be very helpful if someone could share with me how to test this Link provided by Business Central in Javascript


Thank you again for your time and any input.
good day

  • Yael Suarez Profile Picture
    Yael Suarez 115 on at
    RE: Consume Soap Created in Business central

    Thank you very much for telling me the name of the Postman tool


    Finally, how can I do the GET query in Postman to consume a specific procedure of my CodeUnit which looks as follows

    pastedimage1646111421184v1.png

    I need to send a product number to the codeunit and it should return a true or false depending on whether the number exists

    In PostMan, how do I modify the URL so that the procedure is executed and returns a True or False value?

    It currently looks like this in PostMan

    pastedimage1646111917293v2.png

    Thank you again for taking the time to answer my question and for your knowledge.

    Good day

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 71,565 Super User 2024 Season 2 on at
    RE: Consume Soap Created in Business central

    Hi, Have you tried Postman? It can be easily converted into code in any language.

    https://www.postman.com/

    pastedimage1646096008392v1.png

    pastedimage1646096062063v2.png

    pastedimage1646096075302v3.png

    pastedimage1646096097690v4.png

    Other info:

    https://www.j3ns.de/d365-business-central/connect-to-business-central-rest-api/

    https://www.cdata.com/kb/tech/d365businesscentral-odata-nodejs.rst

    Hope this helps.

    Thanks.

    ZHU

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans