web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Issue while accessing Service Bus - Mobile App with AX 2012

(0) ShareShare
ReportReport
Posted on by

Hi All,

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).

The architecture we are trying to recreate:

6170.Capture.JPG

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:

xxxxxxxxx.servicebus.windows.net/.../Expense

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"}

 

Regards,

Lakshmi Naarayanan J

*This post is locked for comments

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans