Web service: Call query with parameters

dgroenkjaer
Member Posts: 5
Hi,
I have created a query that I wish to publish as a web service that can be called with parameters.
But in order to use parameter I am currently using a global function in a codeunit which is published as a web service, but is there a way to just use the query and call that with parameters?
My issue is that codeunit is SOAP where queries is ODATA when published as a web service, and I would prefer ODATA (JSON).
I have created a query that I wish to publish as a web service that can be called with parameters.
But in order to use parameter I am currently using a global function in a codeunit which is published as a web service, but is there a way to just use the query and call that with parameters?
My issue is that codeunit is SOAP where queries is ODATA when published as a web service, and I would prefer ODATA (JSON).
0
Best Answer
-
Hi,
How would you define 'a parameter' for a query?
ODATA URI's can have filters. Perhaps that is enough for you?\\The truth exists in seven versions.5
Answers
-
Hi,
How would you define 'a parameter' for a query?
ODATA URI's can have filters. Perhaps that is enough for you?\\The truth exists in seven versions.5 -
Update: The solution @Peter+is1 suggested worked for my case. For some information about the filtering with OData I used this: http://www.odata.org/documentation/odata-version-2-0/uri-conventions/
Thanks for the input!
@Peter+is1 I hadn't thought about that. I'll try that and see if it'll work0 -
You're welcome.\\The truth exists in seven versions.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions