Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

XML based D365 F&SCM(AX7) custom web API

Posted on by 137
Hi,
 
A vendor has requested us to expose an XML based custom D365 F&SCM API.
 
As far as I know, the D365 F&SCM custom web API works with JSON request/response. Is there a way to natively implement this.
 
I've thought of a workaround where I will create a HTTP trigger logic app which will take XML request. Then I'll convert this XML request to JSON and pass it to D365 custom web API. I would like to know if there is a better way to achieve this?
 
Note, the vendor is not able to send us request in any other format so we are bound to work with XML request/response.
  • Layan Jwei Profile Picture
    Layan Jwei 7,347 Super User 2024 Season 2 on at
    XML based D365 F&SCM(AX7) custom web API
    Hi Abishek,
     
    If you can't make your xml in SOAP format directly. Then you'll need a middleware to convert it to json or soap. Logic apps can be an option
  • XML based D365 F&SCM(AX7) custom web API
    Hi Layan, I did try out the soap and as mentioned by Martin already, I was not able to comsue the agreed upon schema as request. The XMl we have is not in SOAP format. 
     
    Hi Martin, I am planning to have an HTTP trigger based logic app which will accept XML as request. Then I'll convert it to JSON and call the D365 service. Please let me know if there is a better approach to achieve this.
  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    XML based D365 F&SCM(AX7) custom web API
    SOAP is an XML format, therefore the SOAP endpoint can accept XML, but this XML must be in SOAP format. It can't be just any arbitrary XML.
     
    Note that you can use a middle-tier service to transform your XML to either JSON or SOAP.
  • Layan Jwei Profile Picture
    Layan Jwei 7,347 Super User 2024 Season 2 on at
    XML based D365 F&SCM(AX7) custom web API
    Hi Abishek,

    Yes it should work, I'll be waiting for you come back to us with your findings :)

    Btw, you can download a tool called SOAP UI, it might make your testing for the custom service easier.

    Thanks,
    Layan Jweihan
  • XML based D365 F&SCM(AX7) custom web API
    Hi Layan, yes we need to create a custom service that the external vendor will use as an API call to communicate to D365 F&SCM. Let me refer the link shared by you. If the soap service can accept the XML request than my job would be done. I'll mark the reply as answer if this works. Thanks for your response!
  • Suggested answer
    Judy Profile Picture
    Judy Microsoft Employee on at
    XML based D365 F&SCM(AX7) custom web API
    Hi, you can develop custom services for finance and operations. When a developer writes a custom service under a service group, the service group is always deployed on two endpoints:
    • SOAP endpoint
    • JSON endpoint
    Please refer to the MS document about custom service:
  • Layan Jwei Profile Picture
    Layan Jwei 7,347 Super User 2024 Season 2 on at
    XML based D365 F&SCM(AX7) custom web API
    Hi Abishek,
     
    What do you mean by custom api? Do you mean custom services? If yes then you can access it as SOAP or json where in soap u can pass xml
     
    Check this link
     
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans