Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

How to make AX 2012 webservices available from internet. IIS server can access webservices on lan AOS through local wsdl uri addresses, but I can't make them available outside through http.

Posted on by

I have AOS working OK in LAN server. I have IIS installed in DMZ server. I have installed ax component "web services on IIS" on DMZ server. I created new site in IIS (should I add applications or pools or something in them? Or everything should be created during inbound port activate?). I added this new site to AX System administration/Setup/Services and Application Integration Framework/Web sites, and it validates OK.

Being on DMZ server I can access webservices through wsdl uri local addresses like http://[localServerNameOrIP]:[8104orOtherPort]/DynamicsAx/Services/AssetDepRateExpImp 

When I try to create in AX new outbound port (adapter http) and activate it - a new subfolder is created in DMZ server in C:\Program Files\Microsoft Dynamics AX\60\AifWebServices-test -    subfolder name is the same as newly created http outbound port name. But nothing is created in C:\inetpub\wwwroot\[myInternetDomainNameOfNewIISsite] (maybe nothing shoud be created?). I cannot access the internet-style address of this webservice. I try the address which is found in WSDL URI field of newly created inbound port. (It says this page can't be displayed).
Probably I am missing something in AOS<>IIS<>IIS sites and their configurations/pool/application/virtual folders<>AOS users and rights?<>IIS users or run as?<>business connector proxy account in AX?<>business connector settings in ax client configuration utility?<>wcf configuration or its refresh in ax client config utility?<>Inbound ports configuration?.

I searched through internet, but I could find only separate instructions for each element (separately aos, separately iis, separately component web services for iis), or people talk about having iis on the same server where aos is (which is NOT my case. My case is AOS inside LAN, IIS - in DMZ, only some aostcp/wsdl ports forwarded like 271*,810*,820*).

PS. when on DMZ server, in Microsoft Dynamics AX Configuration Utility I press Refresh Configuration - it thinks long then gives error:     

Regenerate WCF configuration

An error occured while regenerating WCF configuration:

Exception occured on the metadata service on client or server. See exception details below:

>A call to SSPI failed, see inner exception.

No other details are given (nothing in Event Viewer also). I tried to google for such error - but nothing sensible found. But AX client works OK.

Actually I have several AOSes in LAN, and I would like to have several IIS sites, each giving access to webservices from their aos only. But first of all - I can't even make one webservice work to outside :(

Please help, give any ideas.

*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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans