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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Query Service - experience sharing

(0) ShareShare
ReportReport
Posted on by 35

Hey! We are currently working on the documentation regarding the query service - https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/query-service.
There are several questions:

1. Does Query Service must be installed as an additional service or it's included in the standard Dynamics AX 2012 installation package?

2. Please share the experience with WSDL. How to get it? How to request it? 

I have the same question (0)
  • Martin Dráb Profile Picture
    235,987 Most Valuable Professional on at
    RE: Query Service - experience sharing

    Please open the documentation page - you can find several examples there. This is one of them:

    DataSet dataSet;
    Paging paging = null;
    
    dataSet = client.ExecuteStaticQuery("CustTable", ref paging);

  • AlexDr8 Profile Picture
    35 on at
    RE: Query Service - experience sharing

    After generating service client and call - query service. Could you please provide an example of how to call a query service for retrieving data mentioned above e.g. Invoices?

  • Martin Dráb Profile Picture
    235,987 Most Valuable Professional on at
    RE: Query Service - experience sharing

    1. Look at the link in your question. It already contains an example of calling a query to get customers.

    2. You won't generate WSDL. This is a system service developed by Microsoft and you'll find WSDL on the URL mentioned above. You'll use this WSDL to generate a service client for calling the query service.

  • AlexDr8 Profile Picture
    35 on at
    RE: Query Service - experience sharing

    Thanks for the reply!

    How to install or adjust this service for further use:

    1. Could you please provide an example of how to call a service for getting data about the "Invoices" or "Customers"?

    2. Where can I find the instruction with examples of how to generate the WSDL for getting the info mentioned in 1 question above?

  • Suggested answer
    Martin Dráb Profile Picture
    235,987 Most Valuable Professional on at
    RE: Query Service - experience sharing

    1. It's included - you don't need to do anything.

    2. You can find the URL of WSDL on the page that you've linked above. It's http://<servername>:8101/DynamicsAx/Services/QueryService (assuming the default port number).

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 844 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 752 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans