Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to call/link ax service class in web api ?

Posted on by 1,869

Dears,

Please provide me relevant example or code to call ax service classes in web api to perform crud operations.

Thank you.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,188 Most Valuable Professional on at
    RE: How to call/link ax service class in web api ?

    In my opinion, you don't need examples of doing it through Web API. Just look at examples of how to consume SOAP services in VS/C#. What kind of application you write in C# (whether it's a console app, Web API or something else) isn't that important.

  • Verified answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: How to call/link ax service class in web api ?

    docs.microsoft.com/.../cc652581(v=ax.50)

  • Faqruddin Profile Picture
    Faqruddin 1,869 on at
    RE: How to call/link ax service class in web api ?

    Hello Marti,

    Thanks for your reply. Actually I'm trying to develop cross-platform apps. Now my requirement is to develop ASP.Net web api that interact with ax 2012 web service classes . Yes I aware soap services and its crud operations. But I don't how to call them directly in other platforms. Thats the reason, I'm trying to create Asp.net web api as middle platform and I want to interact with ax web service classes. So basically all want an example how to interact web services ax 2012 classes with ASP.NET web api ?

  • Martin Dráb Profile Picture
    Martin Dráb 230,188 Most Valuable Professional on at
    RE: How to call/link ax service class in web api ?

    Can you please explain what you're trying to achieve and what problems you have with it? We can't give you "relevant" examples if you don't tell us what is relevant for your situation.

    What exactly is do you mean by "web api"? Are you talling about ASP.NET Web API or do you just mean web services in general? Why do you want to call AX services from another API instead of just calling them directly? It's unclear unless you explain what you're doing.

    Are you aware of AIF document services in AX 2012? Do you realize that you can call them via SOAP web services, which support CRUD operations? Is it relevant for you or not?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans