I have been thrown into uncharted territory again (for me atleast). Our client needs help building a web GUI for accessing some data through MS Dynamics. Meaning I need Dynamics to send info, from a table in the database to the users external PHP code that is requesting it. Now I have been told to go about it with services, (AOT->Services). How DO I access these services from outside Dynamics AX? Are there any books/tutorials about it? Code snippets maybe?
Hello, I am using 2009 for this one. And yes, I also found documentation on 2012, but not so much on 2009…
Maybe a little more info:
I am supposed to assist the client in this task, as he is building the web side of the program in PHP and says he found info for the code in VisualBasic and C#, but that his own made analouges of these versions in PHP dont really work.
MSDN section about AIF in AX2009 is here. Also check Training materials for AIF in AX2009 (if you have access). The main decision is whether you want to use AIF document services are rather something custom.
About consuming in PHP, we used to have such a solution (PHP-based e-shop + custom service on IIS + AX) back in Axapta 3.0 - it shouldn’t be more difficult these days. It’s long time since I did something in PHP last time, so I probably won’t help you with it, but look at SoapClient class.
First of all I must create web service using AIF. And then use SOAPClient in my php application to get data from AX via web service which I created. Am I right? Thanks
You already created another thread: Get product data from AX to PHP e-commerce application. Let’s discussed your questions there rather then in this (already answered) thread.