Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / XML based D365 F&SCM(A...
Finance forum
Suggested answer

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

Posted on by 135
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 3,472 Super User 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 224,741 Super User 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 3,472 Super User 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 3,472 Super User 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

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,741 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans