最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

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

网络文摘 William 1647浏览 0评论

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.

转载请注明:ww12345678 的部落格 | AX Helper » AIF – How an external .NET web app can invoke AIF services

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址