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

Announcements

No record found.

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,421 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
    101,502 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,260 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,515 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,373

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans