Skip to main content
Business Central forum
Suggested answer

Consume Soap Created in Business central

editSubscribe (0) ShareShare
ReportReport
Posted on by 103

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

Categories:
Attachments
  • Yael Suarez Profile Picture
    Yael Suarez 103 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 60,007 Super User 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

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,126 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,646 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans