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 :
Finance | Project Operations, Human Resources, ...
Answered

Best Practice for callimg a php external webservice from AX 2012

(0) ShareShare
ReportReport
Posted on by 151

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 have the same question (0)
  • Martin Dráb Profile Picture
    237,884 Most Valuable Professional on at

    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.

  • Hiroki Kanemaru Profile Picture
    on at

    Hi

    I would suggest that you provide more specific scenario so that other community can discuss best practices or alternatives.

  • Mohammed Jabir OM Profile Picture
    151 on at

    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.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You need to start by getting the documentation of this web service, so that you can know how to call it.

  • Mohammed Jabir OM Profile Picture
    151 on at

    It is a basic php url with get parameters.

    Now main and important question is that how to code calling webservice from x++ code

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans