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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Configure WCf service and use it in Dynamics AX

(0) ShareShare
ReportReport
Posted on by 10,796 User Group Leader

Hi everyone, 

I am having the following error while adding a web service (.svc file) as a service reference in Visual studio project.

  

I have done some testing to add this web service successfully and consumed it in AX with the following scenarios which shows when I am able to access this web service with what IE settings. 

Tests:

  1. With “Automatically detect settings” set to true in IE:
    1. tried to access the MESService using Visual Studio, but failed to connect.
    2. tried to access the MESService using IE, but failed to connect (kept asking for credentials).
    3. tried to access the MESService using AX (from X++ code), does NOT connect and gives (407) proxy authentication error.

 

  1. With “Automatically detect settings” set to false in IE:
    1. tried to access the MESService using Visual Studio, and got connected successfully.
    2. tried to access the MESService using IE, and got connected successfully.
    3. tried to access the MESService using AX (from X++ code), and got connected.

 

  1. Created a separate .NET project and consumed the MESService:
    1. with “Automatically detect settings” set to true in IE, the service is not accessible.
    2. with “Automatically detect settings” set to false in IE, the service is accessible.
    3. with “Automatically detect settings” set to true in IE, the service is accessible with some changes made to the configuration of the .NET project.

 

  1. Made the same configuration changes (as mentioned in 3.c.) in places where AX looks for the MESService, tried to access the MESService using AX (from X++ code), but still AX cannot connect and gives (407) proxy authentication error.

 

  1. Created a “wrapper” service for MESService on the AOS Server and hosted it on the AOS server’s IIS. Then created a separate .NET project and consumed this “wrapper” service. This also worked fine.

 

  1. Changed the X++ code to now consume the wrapper service (instead of the MESService), but still AX cannot connect and gives (407) proxy authentication error.

 

I found couple of log entries which might help in this case but did not find anything workable for me.

Blog Entries

https://community.dynamics.com/ax/b/axfortechies/archive/2010/06/03/consuming-asmx-webservice-or-wcf-service-in-dynamics-ax.aspx#.Udy0vZxMYhA

http://community.dynamics.com/ax/b/daxmusings/archive/2011/10/19/consuming-external-webservices-in-ax-2012.aspx#.Ud3uoPmNmP8

 

Call from AX

When I tried to call this web service from AX I got the following error which may be more explanatory to know the base of this issue. 

Any thoughts or pointer will be highly be appreciated. 

Regards,
Faisal

*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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dekion Profile Picture

dekion 4

#2
Virginia99 Profile Picture

Virginia99 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans