Notifications
Announcements
No record found.
Hi Axians..
I would like to call some php webservices from x++ and get some data for intergration needs.
What are the best practices for it.
Thanks in advance.
I wonder if you didn't want to ask how to make such a call at all, rather than talking about best practices.
AX doesn't care which language was used to implement the web service.
An important best practice is keeping DB transactions short, therefore you shouldn't make web service calls from inside transactions. Web service calls can take a lot of time or fail completely because of network issues.
Hi
I would suggest that you provide more specific scenario so that other community can discuss best practices or alternatives.
I need to collect data from an external webapp database.
They will expose their php services to us and we need to give date as a parameter and get the records.
I can put a batch job and collect the records periodically.
So I need to call a php webservice inside AX
If i mention specifically,
These are then used in item competitor pricing tables of AX.
You need to start by getting the documentation of this web service, so that you can know how to call it.
It is a basic php url with get parameters.
Now main and important question is that how to code calling webservice from x++ code
What is "a php url"? When you call web services, you don't need to know which programming language the developer of the service used. And even if you know it, it's not relevant. You could develop identical web services with php, x++ or Java.
What you need is documentation of the service, telling how to authenticate and how the request should look like.
Anyway, here's one example of making a http GET call from x++: rahulmsdax.blogspot.com/.../rest-api-get-call-json-format-using.html
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 565 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader