RSS

AIF – How an external .NET web app can invoke AIF services

13 Aug

Issue:

A .NET Web application calls an AIF service but keeps getting an error “Logon failure: unknown user name or bad password.“.

When i created my own .NET Console application to consume this service. I had no issue making a request.

What seems to be the problem? Permissions? Roles? Cross Domain? Trusted intermediary?

Solution:

Note: I assume you know how to make service request through .NET. I only show how to set up from AX side.

1. Create a Custom Service

You can use any service available out of the box or create a new one. In my example below, I created a custom service

2. Create a “Claims user”.

System Administration > Common > Users > Users > New User

clip_image002

IMPORTANT: Make sure you have to create a role and privilege with all necessary access to entry points as well as tables that you use

image

3. Setup your custom service as “Enhanced” port with “Trusted Intermediary users”

clip_image004

4. Add super user and claim user

clip_image006

Additional Information

You can read more about Trusted Intermediary from this blog.
http://daxmusings.codecrib.com/2011/11/trusted-intermediary-in-aif-services.html

http://stackoverflow.com/questions/18704978/cannot-connect-to-ax-web-service-form-asp-net-but-can-from-console-application

The only additional setup up that i create is to assign a Role to  the claim user.

Advertisements
 
Leave a comment

Posted by on August 13, 2014 in Development

 

Tags: , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: