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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

consume AX web service

(0) ShareShare
ReportReport
Posted on by 4,624

Hi ,

I have created on Enhanced Inbound port using HTTP adapter in AX (running on my client system domain) and i want to consume this service on my system(which is in my company domain) but when i am adding service reference in visual studio , giving me this error:

ServiceRef.PNG

I know for doing this , web services should be installed on IIS server, and it is actually installed following by below link:

https://technet.microsoft.com/en-us/library/gg731848.aspx

please suggest ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rudi Hansen Profile Picture
    4,075 on at

    Try to open the URL of the web service, both on the server where AX is installed, and on the server where you have Visual Studio installed.

    This will tell you if the service is available at all.

    If you cantt get to it on the AX server, then something is wrong in AX.

    If you can't get to it on the VS server, then its properly a firewall issue.

  • Rohin Profile Picture
    4,624 on at

    No, its not open in AX server and showing below error:

    AX-server.PNG

    please suggest what would be wrong with my service?

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    There are some other topics which suggest that if you have multiple AX instances, or have chosen non-default ports for WCF services, then that is the cause. By default, AX starts from port 8101, and with each new AOS installation it incrementally increases it by 1.

    If you check the Inbound ports within the System administration module in AX, you would see the correct service URL and ports.

    You may go to your AX AOS Servers' bin folder, and check the Ax32serv.exe.config file and validate the port against what you see in your Microsoft Dynamics AX Server Configuration Utility setting for the WSDL ports.

    Then make sure your URL is pointing to the correct port, and also if you have AX Configuration files (*.AXC), they are again pointing to the correct ports. Then finally, refresh the WCF services in the AX Client Configuration Utility too (and export the AXC file if you do use that).

  • Rudi Hansen Profile Picture
    4,075 on at

    How did you setup the service?

  • Rohin Profile Picture
    4,624 on at

    Hi Vilmos & Rudi,

    I have created a new inbound port (enhanced) using HTTP adapter and select salesSalesOrderService.read() operation and activated the port shown below:

    aifweb1.PNG

    @vilmos : please see AX server configuration , its pointing to correct WSDL port:

    aifweb1.PNG

    any further suggestion please?

  • Rudi Hansen Profile Picture
    4,075 on at

    Is the link your enter in IE : ax-sandbox-ii/.../WebSalesOrderRead

    If that is not returning some XML, what about other services, do they also not work?

  • Rohin Profile Picture
    4,624 on at

    This is returning below error in IE:

    4667.AX-server.PNG

    This is only the service with HTTP and all other inbound ports are netTCp adapter which all are returning XML in IE

  • Rudi Hansen Profile Picture
    4,075 on at

    Ok well as far as I can tell it seems like there is some kind of a problem with the setup in AX of this service.

    Any information in the Eventlog?

    Sorry I might not be to help full, it is a little hard to find problems on a system when you do not have access to it.

    So I may have to ask a few questions that might seem stupid.

  • Rohin Profile Picture
    4,624 on at

    Rudi,

    thanks, i need to resolve this issue somehow so please feel free to ask anything.

    What event type i need to look , please see below:

    event.PNG

    Note: I wanna tell you one thing , In my environment web services are already installed (done by someone) but when i was creating inbound port for my web services, there was no web site in web sites form then i created web site manually and validated it successfully. I was worried that it should be created automatically when we install web services component in AX. does it cause ??

    please suggest

  • Rudi Hansen Profile Picture
    4,075 on at

    Its the application log you need to check for anything related to the service.

    About IIS setup, you should proberly read this document and make sure everyting is setup correct.

    https://technet.microsoft.com/en-us/library/gg731848.aspx

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans