Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Issues with deployment of .NET project Service References, referencing AX AIF services

(0) ShareShare
ReportReport
Posted on by

I’m having an issue with service references when deploying changes from one environment to another. I’m not sure if this behavior is expected and for good reason, or if I might be missing something.

The scenario is, we have an bespoke application that consumes web services hosted by an instance of AX (AOS1). Within visual studio, for development, the bespoke application downloads service references from AOS1. The problem can be replicated all from within visual studio, so to keep this simple I’ll describe the problem from a visual studio perspective.

When it comes time to deploy AX service changes from AOS1 to AOS2, all changes from AOS1 are deployed to AOS2 (model deployment), the services are registered and the AIF service port is configured so that the document schemas in both AOS’ are identical.

Within the visual studio project, I change the configuration (not service reference configuration) to point to AOS2. Demonstrated here with code:

Old value:

new EndpointAddress(new Uri("net.tcp://AOS1:8201/DynamicsAx/Services/MyService"))

New value:

new EndpointAddress(new Uri("net.tcp://AOS2:8201/DynamicsAx/Services/MyService"))

When I run my test in visual studio against AOS2 and inspect the response, I can see that it returned a message, with elements (data fields) but they are all null.

I then review the response message in AX (AIF message logging) and can see that the message logged in AX has all the data I am expecting (no null values).

In visual studio, I then update my service reference against AOS2, run my tests and the data is not null, everything works as expected.

I am interested to know why this happens. Currently I am assuming it is related to the deployment (Register) of the services from AX.

Is there something I am missing, is this deployment scenario supported in AX or does anyone have any ideas why this might be happening?

Thanks

Toby

*This post is locked for comments

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,145 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,917 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans