Skip to main content

Notifications

Announcements

No record found.

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? 

  • Martin Dráb Profile Picture
    231,793 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
    231,793 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
    231,793 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 292,927 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,793 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans