odata4j is a new open-source toolkit for building first-class OData producers and first-class OData consumers in Java.
Questions tagged [odata4j]
109 questions
2
votes
3 answers
Odata Url conversion with descending orderby
i need to get data by descending orderby Visidate of patient so i tried url like this
192.168.1.105:33396/FalconCPDataService.svc/DEPhysicians?$format=json&$expand=DEPatientVisits&$orderby=DEPatientVisits/VisitDate+desc
but showing…

Sreekanth
- 407
- 4
- 8
- 20
2
votes
1 answer
odata4j support for OData version 4.0
As per my knowledge of odata4j,odata4j is supporting OData v1-v3. Is odata4j going to support OData protocol version 4.0 ? Is there any community that is actively working on this library?

prerna30
- 131
- 1
- 2
- 15
2
votes
2 answers
how to consume Odata Service from Android using any library that contain select where statement
Is there a way to consume Odata Service from Android using Odata4j or any other library that contain SELECT WHERE Clause statement
I searched a lot but can't find any solution

omar
- 41
- 1
- 9
2
votes
0 answers
OData4j sample implementation for POST/Create operations
Where can I find sample implementaion for OData Create operation (POST in REST) using odata4j for POJO. I have already checked InMemoryProducerExample but no help.
Also some pointers on how to use $filter for Query operations...
Thanks in advance,…

Avishek
- 21
- 3
2
votes
1 answer
Using Odata4j to create abstract syntax tree for Query Parameter expressions
Im exposing REST services through use of Sprint MVC 4.0 framework and I try following Odata specification for the Query Parameters such as $filter, $search and $orderBy. Each of these contains expressions that I need to parse, build abstract syntax…

Ismar Slomic
- 5,315
- 6
- 44
- 63
2
votes
0 answers
How to access HttpSession from odata4j ProducerFactory?
For populating entries only visible to the user I need to know which user is logged in. This information is stored in my HttpSession object. How can I access this object from an odata4j ProducerFactory implementation?
user1447767
2
votes
1 answer
test connection with OData without getting any data
I was wondering, is there some way to get just the response from OData server, preferably with odata4j client, without any particular data actually being sent? I can request the server for metadata, but that's kind of wasteful, since it sends lot of…

enrey
- 1,621
- 1
- 15
- 29
2
votes
1 answer
How to retrieve related Odata entities Odata4j
I am having trouble retrieving related entities using the odata4j library. My problem is as follows:
A has a one to many relationship with B. A has a list, "bs", of items of type B.
I created entity A and the link using
Map map = new…

Kris
- 21
- 3
2
votes
0 answers
odata4j - getting an exception when executing a functioncall
I want to execute the functioncall GetProductsByRating from the services.odata.org/OData/OData.svc/ odata web-service endpoint, using odata4j.
My code is the following:
Enumerable e =…

joao2fast4u
- 6,868
- 5
- 28
- 42
2
votes
1 answer
how to add header information in ODataConsumer in odata4j?
I am using this code which utilizes an odata4j ODataClientRequest and ODataConsumer to attempt to call an OData service that requires authentication:
String url = "https://mylocalhost/api/odata/People()?$filter=PID%20eq%20'10'";
Map

Weijian Chai
- 51
- 3
2
votes
3 answers
OData4j query using basic authentication
First, let me start by saying I have got absolutely nothing working with OData4j.
I am building an android app (using Eclipse) that needs to consume some OData from a web service, we have an iPad app already which work fine so I think it's safe to…

musefan
- 47,875
- 21
- 135
- 185
2
votes
0 answers
data cache for odata4j
I am implementing a RESTlet service via odata4j on Android.
When running the application there is a constant flow of data, which needs to be sent to a odata server.
The following method get's the new data:
private void freshData(Data data) {
…

Martin Grohmann
- 437
- 2
- 17
1
vote
2 answers
OData4j exceptions - "Odd number of characters" and "bad valueString part of keyString"
EDIT:
The solution was to make a view that mirrored the table in question and converted the date to varchar and then convert it back to date with a matching collation
END OF EDIT
Can anyone tell me why OData4j reads datetime values fine from one of…

Hessi-Dude
- 61
- 3
- 10
1
vote
2 answers
Does OData4j request a response in JSON format or convert the response to JSON format? (Android)
I've been using the following code to create my android OData service consumer.
Services = ODataConsumer
.newBuilder("http://xxx.xxx.xxx.xxx:xxxxx/WCFDataServices.svc/")
.setFormatType(FormatType.JSON).build();
What I want to…

Hessi-Dude
- 61
- 3
- 10
1
vote
1 answer
How to set cache-control header in odata4j?
I'm writing a RESTful service using odata4j and need to be able to set the caching header of the response.
How do I do this?
I don't seem to have access to the HttpservletResponse object.
And unlike the JAX-RS support, I can't see anything in…

Sarah Rushworth
- 813
- 3
- 9
- 16