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

How to call procedure of Codeunit published as web service?

(0) ShareShare
ReportReport
Posted on by 65

Hello. I created Codeunit with public procedure and published this Codeunit as a WebService(SOAP).

Unfortunatelly - I cant Access this procedure via URL.

Main URL to this CU (like Cronus/Codeunit/WSCodeunit) works correctly.

When I try to Access to created procedure (Cronus/Codeunit/WSCodeunit/WSProcedure) I get error:

Service Codeunit/WSCodeunit/WSProcedure was not found!

This procedure appears as a element in XML response of the main URL of this Codeunit.

What is problem? I need to do something more to Access to CU procedures?

(Same problem when i try to Access to procedure Approve od standard web service CU: 1544

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

    Hi,

    Did you try like below?

    URL - api.businesscentral.dynamics.com/.../WSServiceName

    Content-Type - application/xml

    SoapAction - urn:microsoft-dynamics-schemas/codeunit/WSServiceName:FunctionName

    Authorization - Key

    Body -

    <Envelope xmlns="schemas.xmlsoap.org/.../">

       <Body>

           <FunctionaName xmlns="urn:microsoft-dynamics-schemas/codeunit/WSServiceName">

               <Parameter1>Value</document>

               <Parameter2>Value</document>

           </FunctionaName>

       </Body>

    </Envelope>

  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    hi

    look this

    community.dynamics.com/.../calling-codeunit-web-service-soap-using-rest-api

    DAniele

  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at

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,229

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans