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 :
Business Central forum

SOAP webservice not exposing the functions in April Release of Business Central

(0) ShareShare
ReportReport
Posted on by 525

Hi 
I've been working on exposing a couple of codeunits through SOAP webservice in Business central using the XML file in AL project. It was working perfectly in all previous versions but when we tested it in April Release of Business central(14.0.29531.0-DK), it does not expose any of the public methods in the codeunits. What could have possibly gone wrong?
Following is one of the XML files being used to publish the web service in BC:

<?xml version="1.0" encoding="utf-8"?>
<ExportedData>
    <TenantWebServiceCollection>
        <TenantWebService>
            <ObjectType>5</ObjectType>
            <ServiceName>ImportData</ServiceName>
            <ObjectID>55000</ObjectID>
            <Published>true</Published>
        </TenantWebService>
    </TenantWebServiceCollection>
</ExportedData>


I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    You are right, you can see all the functions marked as external in C/AL.

    This was signalled to MS, waiting for a response.

  • Mohsin Abbas Profile Picture
    525 on at

    Hi Stefano

    Thanks for prompt response. Are you saying that its a bug in new release? Or do I need to change something?

    Thanks

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    If your codeunit comes from C/AL, set the functions as External. We’re waiting a response to know if it’s a bug or a wanted behavior.

  • Mohsin Abbas Profile Picture
    525 on at

    The codeunits are part of my app written in AL. Couldn't find any reference in docs on how to set this property for procedures in AL.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Functions created in AL are all external as default (you don't have this property), so the problem continues... I've asked MS to give us a response.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Official MS response: if you create a codeunit in AL, you can see only the methods target as External now. In AL all should work as before (you should see all non local methods).

    Can you check this please?

  • Mohsin Abbas Profile Picture
    525 on at

    I'd really appreciate if you could update me whenever you get a response from MS.
    Thank you :)

  • Community Member Profile Picture
    on at

    Can confirm we got same issue. An AL extension that works in Update23 is broken in April Release, as it no longer exposes procedures in the exposed codeunit. Procedures is declared as "procedure XYZ" i.e. non-local.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    All is explained here, and confirmed by MS officially:

    demiliani.com/.../dynamics-365-business-central-cu04-and-soap-web-services-changements

  • JSebastian Profile Picture
    on at

    Thanks alot.

    The answer you've got below, do you have a tracking ID for that?

    I need to raise this with MS as we cannot continue.

    Our WS are not being exposed anymore ;(

    "Official MS response: if you create a codeunit in AL, you can see only the methods target as External now. In AL all should work as before (you should see all non local methods).

    Can you check this please?"

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 Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans