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
0
votes
1 answer
Getting "Unexpected character '/' (code 47)" exception when running simple Odata4j consumer
I am a beginner to odata4j. I am trying to run the following program using odata4j v0.7 library-
import org.core4j.Enumerable;
import org.odata4j.consumer.ODataConsumer;
import org.odata4j.consumer.ODataConsumers;
import…

user3845094
- 11
- 1
- 2
0
votes
1 answer
maxdatetime in odata URL
Hi have list of dates I need to get name where the maximum date is there.
In oData Service there is function maxdatetime(). I used like this
url/services/List?$format=json&$select=name&$filter=date+eq+maxdatetime()
But it is showing…

Sreekanth
- 407
- 4
- 8
- 20
0
votes
2 answers
how to convert query to url in odata services
how to convert this query to url i tried some thing
like this
SELECT "column_name"
FROM "table_name"
[WHERE "condition"]
ORDER BY "column_name" [ASC, DESC];

Sreekanth
- 407
- 4
- 8
- 20
0
votes
1 answer
How to decode GZip stream with odata4j in Android
I have a WCF Data Service that sends data with GZip. I intend to use odata4j to read that compressed stream. If it is not compressed, it works fine.
What should I modify to be able to read the compressed stream via odata4j?
Here is the C# code that…

Nestor
- 8,194
- 7
- 77
- 156
0
votes
1 answer
How to get OData v3 WCF Data Service call to communicate using v3 protocol
I've got an interesting situation. I have two applications calling a function on a Microsoft WCF OData service:
Android using OData4J library (v0.7)
iOS using OData4ObjC library (Elizabeth Duncan fork for iOS 6.1)
The OData service is written…

Quantium
- 1,779
- 1
- 14
- 14
0
votes
1 answer
What is the quickest way to detect if a service on a specific IP is available
My Android program has to scan 255 LAN addresses to find if an OData service (WCF Data Service) is available.
The service runs on 1 or 2 computers, there are about 20 devices on the LAN but when my code "scans" an IP address that is in use BUT not…

Nestor
- 8,194
- 7
- 77
- 156
0
votes
2 answers
OData support for iOS (alternative to OData4ObjC)
I was planning on using OData4ObjC to access OData from my iPhone app. But it seems that OData4ObjC has become an inactive project (no activity at all for almost a year and no support for anything past iOS 4).
Does anyone else know of an equally…

AllieCat
- 3,890
- 10
- 31
- 45
0
votes
1 answer
Jaydata .forEach only iterating 50 times
My Jaydata and OData endpoint are completely functional. :)
When I have a database with less than 50 entries, everything works perfect.
But for ALL of my databases with 50+ entries, JayData's .forEach only iterates through the first 50.
At first I…

AllieCat
- 3,890
- 10
- 31
- 45
0
votes
1 answer
How to use full queries with OData4j?
I have scanned the documentation pretty thoroughly, and googled to no end, however I cannot find a way to send a full query to an OData service using OData4j. As it stands, I am parsing queries and building an OQueryRequest object recursively.
This…

Erik Hunter
- 211
- 3
- 8
0
votes
1 answer
how to create media link entity in odata4j
how to create media link entity in odata4j.
like following:
{
"__mediaresource": {
"edit_media": "http://server/uploads/Thumbnail546.jpg",
"media_src": "http://server/Thumbnail546.jpeg",
"content-type": "img/jpeg",
…

goodier
- 395
- 6
- 18
0
votes
1 answer
how to specify dynamic class loader with eclipse link
Environment :
Tomcat- web server, eclipselink-2.4.1(Juno) JPA, Odata4j
I'm doing JPA (Generate dynamic entities from table) with eclipse link.
My persistence.xml looks like

Abdul
- 321
- 4
- 22
0
votes
1 answer
Restlet creation doesn't return ID
I'm currently PoCing a solution for OData interaction from Java. We have an WCF odata repository available. I began preliminary coding using the restlet API because it has code generation available but since using it I've encountered the situation…

Mark Gargan
- 831
- 1
- 9
- 21
0
votes
1 answer
Android odata4j Consumer EntitySet not found
I am trying to put some data from Android to an OData Server:
…

Martin Grohmann
- 437
- 2
- 17
0
votes
1 answer
odata, Noclassdeffounderror
Below is the code of android trying to retrieve data using odata. OdataWebNorthwindModelService is name of proxy class(auto generated)... I followed http://weblogs.asp.net/uruit/archive/2011/09/13/accessing-odata-from-android-using-restlet.aspx for…

user98239820
- 1,411
- 2
- 16
- 30
0
votes
1 answer
How do I use OData4J with an unknown number of child objects?
I am trying to build a createEntity OEntity for an object that has multiple child collections within it.
I have looked over many of the example projects, but they all seem to assume that you have a known number of child objects in a collection so…

ewjames
- 75
- 1
- 9