Notifications
Announcements
No record found.
Hello!
We are implementing ReTrans, a freight management logistics package with a JSON interface. The MS Docs reference this a bit in creating a service reference but fall short on usable examples.
Has anyone done this and would be willing to show or donate some example code, particularly in the X++ area?
Note this is AX 2012.
Thanks
Konrad U
You do not consume it in AX directly. Common practice is to build c sharp dll that interacts with the service, here is one of the blogs with possible approaches https://www.codeproject.com/Articles/233698/Consuming-a-Json-WebService-from-a-Csharp-or-VB-Ap and then use this DLL in AX. This way you handle all the complexity within c sharp code that has better tooling and expose to AX only simple methods that it needs.
Hi Konrad,
In AX2012, it is not possible to reference any Web service directly, you could consume web services from X++ code by adding Microsoft Visual Studio projects as a reference and by using Aif::CreateServiceClient.
Have a look at Joris' Blog:
daxmusings.codecrib.com/.../consuming-external-webservices-in-ax.html
Thanks for the information! It is appreciated.
Konrad
Hello Konrad,
Glad to hear that, please spare a little time to verified the helpful answer to close this thread.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 503 Most Valuable Professional
André Arnaud de Cal... 434 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional