In our organisation we are trying to develop a mobile application/website as a front-end for a Dynamics AX 2012. We are following the architecture which is suggested by MICROSOFT (https://technet.microsoft.com/en-us/library/dn155874.aspx).
Even though ACS is now deprecated in AZURE the architecture suggested by the Microsoft forced us to use ACS which I have created after requesting the Azure team.
Dynamics AX Architecture suggsted by Microsoft
Steps followed as per the document:
We have setup the following items and we are currently stuck at one place:
Setup three windows 2012 R2 servers running on a single domain - First One for AX & DC, Second one for ADFS Server, and third one for middle tier WCF service - Done & Tested individually
Setup of Dynamics AX 2012 server with a AIF service which is exposed in Inboud ports - Done Setup a ADFS server and create few users - Done, Listening to Service bus according to the event logs & Tested authentication using powershell console.
Create a sample console application to call the ADFS to get the token and pass it to Azure Service bus - ADFS is returning a token and ACS is returning a token
Setup a middle tier service which will sit in between AX 2012 & mobile client - Setup done and service bus throwing 404 error
I have done all the steps and it is failing when am trying to contact the Service bus with two tokens. Have anyone done this before and I would like to know what is that am missing?
The post call to Service bus:
Post URL:
https://xxxxx.servicebus.windows.net/ExpenseRest/Expense?Action=Create
Headers:
Content-Type: application/json; charset=utf-8
Authorization: WRAP access_token="net.windows.servicebus.action=Send&http%3a%2f%2fschemas.microsoft.com%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=http%3a%2f%2fFQDN.COM%2fadfs%2fservices%2ftrust&Audience=http%3a%2f%2finvmobile.servicebus.windows.net%2f&ExpiresOn=1503321191&Issuer=https%3a%2f%2fxxxxxxx-sb.accesscontrol.windows.net%2f&HMACSHA256=SS%SSS%SSSS%3d&wrap_access_token"
Host: xxxxxx.servicebus.windows.net
Content-Length: 4382
Expect: 100-continue
Body:
{"adfstoken":"adfs_encoded_token","expenseData":{"Amount":"100","Comments":"Expense of 100 INR","CurrenyCode":"EUR","Date":"08/18/2017"}
Error:
404, No service is hosted at the specified address