Hi all,
I need to integrate an external API with Dynamics AX. This API works as follows:
- Create HTTP request and send
- Catch the response, which will be XML
- Interpret the XML to pull the necessary data
*This post is locked for comments
Hi all,
I need to integrate an external API with Dynamics AX. This API works as follows:
*This post is locked for comments
It's not very different. Look at this, for example: [View:https://stackoverflow.com/questions/2066489/how-can-you-add-a-certificate-to-webclient-c:750:50]
is there any difference is sending httpS request in comparison to http?
just follow below steps.
blogs.msdn.com/.../consuming-external-wcf-services-from-dynamics-ax-5-0-x-code-dynamics-ax-2009.aspx
The C# project has been added to AOT and it's included in the .xpo. Unfortunately you can't get it easily if you don't have AX2012, so I've extracted the code to a separate class library for you (download). It's just to show the code, not to be built.
Great tutorial. Can I get a full source for the C# portion too though? I only saw the xpo file dowload.
Sorry about the delay, nevertheless my post is finally available: Parsing XML files with .NET Interop. It's been written for AX2012 - you can use the same approach in AX2009 too, but you won't get such a seamless experience due to lack of managed proxies.
It's not the only possible approach - you could use other .NET APIs or to load the remote file directly to XMLDocument instance in X++, for example. Simply use the most suitable technology for your particular task.
Does this work in 2009?
I have a nice example that I would like to publish this week, so if you can wait a while...
If you can't wait, look at WebRequest class and XML-processing APIs - I used LINQ to XML. Using .NET APIs is really the most productive way.
André Arnaud de Cal... 291,642 Super User 2024 Season 2
Martin Dráb 230,371 Most Valuable Professional
nmaenpaa 101,156