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 :
Microsoft Dynamics AX (Archived)

Consuming AX Custom Services via C# or Stored Procedure?

(0) ShareShare
ReportReport
Posted on by

We are integrating many of our apps to integrate with AX (We are migrating to AX from another ERP). So many of our existing apps have business logic in stored procedures.

There are 2 options available to get the AX data into our C#/ASP.Net apps:

1. Via web services then do business logic

2. Via stored procedure with already existing business logic

Does anyone have experience with consuming AX web services in stored procedures directly? Is it reliable to consume AX services within stored procedures?

The objective is to reuse existing business logic without compromising speed.

Any input is appreciated.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hello Djim,

    the mentioned business logic in your stored procedures concerns to AX or your other systems/ERP?

    I dont know how you call a webservice from within stored procedures and how reliable this is.

    Maybe you can call the stored procedures from (for example) a c# application and in the same c# application call the AX web services?

    In my opinion calling AX web services from within .net is very efficient.

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi djim,

    It's sounds odd, but AX web service is just a web service not really big difference comparing to any other web service. Technically you can call web service from SQL store proc and you can find how2 articles on the web so just use one of them.

    I cannot comment on reliability because have not done this and probably will never do, but again it's not really AX specific question.

  • Community Member Profile Picture
    on at

    I believe we can do SQLCLR (which has .net) so I will explore this. We already have quite complicated business logic in our stored procedures and we might as well reuse them in the most efficient method.

    code.msdn.microsoft.com/Calling-WCF-Service-from-a-8071ceaa

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans