web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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,812 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,423 Super User 2026 Season 1 on at

    hi

    look this

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

    DAniele

  • Suggested answer
    YUN ZHU Profile Picture
    102,516 Super User 2026 Season 1 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 521 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 306 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans