Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 101540

Forum Post: RE: AX 2012 R3 Retail: call CDX Real-Time Service from non-Windows clients (e.g. SoapUI)

$
0
0
>... This is obviously something a Java or PHP based client wouldn't be able to do. ... There is one more type of the proxy which was shipped in CTP8 (this one is used by MPOS) that one was written in Type Script and therefore for clients which can natively work with Java Script. You can find the project in the SDK at I:\RetailSDK\Proxies\Proxies.Retail.TypeScript, that proxy logically is similar to the one described in the article I mentioned in previous post, so, there is a class ManagerFactory which expects RS URL and OUN, the class also provides the method getManager() to get specific manager. If, by some reason, JavaScript is not your option neither then you can still easily consume Retail Server by generating the library for the language/framework you are using, if you search online you should be able to find many client code generators for ODATA, some of the libraries are referenced here . And finally, if, by some reason you don't want/cannot generate a client proxy you still can consume RS by manually issuing request by using the language you want (the only requirement for that language is to be capable of issuing standard HTTP requests), for instance, to get the list of categories (equivalent to the call from the article) you just need to issue GET request https://PutYourServerNameHere.cloudax.test.dynamics.com/Commerce/Categories?$top=100 with the header oun and value (depends on your channel) let's say 068 As a result you should see status 200 (OK) in response and the response will contain JSON payload with categories corresponding to the channel you supplied via Operating Unit Number Similarly, to get the channel's configuration you should send POST request https://PutYourServerNameHere.cloudax.test.dynamics.com/Commerce/OrgUnits/GetOrgUnitConfiguration by also supplying the header and as a result you will see JSON payload describing channel configuration. So, you can call each and every method of RS by using this approach, the only difference for a specific query would be to supply query specific parameters.

Viewing all articles
Browse latest Browse all 101540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>