Questions tagged [odata4j]

odata4j is a new open-source toolkit for building first-class OData producers and first-class OData consumers in Java.

109 questions
1
vote
0 answers

How to send custom get request using Odata4j

I want to send following GET request using Odata4j http://**.**.***.***:****/sap/opu/odata/sap/ MOBILE_SERVICES/EmpPernrs (name='abc',lastName='xyz') can…
DCoder
  • 3,486
  • 7
  • 36
  • 68
1
vote
2 answers

Bing Search API error using odata4j

I am trying to run Bing search API. I used odata4j and tried the code provided here: How to use Bing search api in Java ODataConsumer c = ODataConsumers .newBuilder("https://api.datamarket.azure.com/Bing/Search") …
user2192774
  • 3,807
  • 17
  • 47
  • 62
1
vote
1 answer

extend olink in odata4j library

I want expert advice regarding my requirement – I hope you guys help me to solve this problem. I am using OData4j library I am want to add uniqeId in my collection resource e.g. Here uniqeId is not part of OData and Atom Pub specification but I…
Jangid
  • 172
  • 2
  • 13
1
vote
0 answers

How to expose mysql table schema as JPA object using Odata4j without maven

I have to generate JPA objects for mysql tables using odata4J , as i am new to web services i have followed some online resources created following tasks; Created new database connection under "Database Development" Added eclipse link and mysql…
Haritha R
  • 115
  • 1
  • 5
  • 16
1
vote
2 answers

OData filter query

I have tables DEPatientVisit and DEPhysician i need to filter the data based parameters
Sreekanth
  • 407
  • 4
  • 8
  • 20
1
vote
1 answer

Update Items using Odata4j 0.3

At first we tried to use Odata4j 0.7 but it was giving me null exception and by the way it is a reported bug but I didn't find a fix/patch for it so tried to use different version until I could connect to my WCF Data Service with Odata4j 0.3…
Ahmed Kamal
  • 1,478
  • 14
  • 27
1
vote
0 answers

Steps to connec to a odata provider using odata4j

I have tried to consume a odata service , but iam getting an error while trying to get entities . String serviceUrl = "http://services.odata.org/(S(mvnfyllpw41mbzvkme0o0zug))/ODataOData.svc/"; ODataConsumer consumer =…
sanjeevi
  • 31
  • 2
1
vote
1 answer

odata4j - The number of keys specified in the URI does not match number of key properties for the resource NorthwindModel.Order_Detail

I develop Android application using OData4J that consume this public Northwind Data Service services.odata.org/northwind/northwind.svc/ and now I am getting this error The number of keys specified in the URI does not match number of key properties…
omar
  • 41
  • 1
  • 9
1
vote
0 answers

Using OData for user Authentication in java

I am new to OData. I am creating an application in which I have to create both front-end and back-end. For the communication of back-end and front-end I have to use OData. In my application before accessing any data I need to first authenticate the…
Waqas Ali
  • 1,642
  • 4
  • 32
  • 55
1
vote
0 answers

Excel 2013 error OData4J JPAProducer odata feed

I have created a very basic producer example using OData4J (JPAProducer) Now I can see the info about schema on browser normal. However the excel 2013 data connection wizard showing error. I tried Excel with…
Karan
  • 26
  • 1
1
vote
0 answers

OData4J consumer not mapping JPA Entity property values if the properties are camelcase

I have published a OData4J service using JPA Producer and I am able to see the metadata and EntitySet/Entity values properly. But when I try to obtain the data using ODataConsumer.getEntities(User.class, "User").execute(); I am getting the beans but…
K. Siva Prasad Reddy
  • 11,786
  • 12
  • 68
  • 95
1
vote
0 answers

Custom parameter on OData URL, how to integrate with its architecture

I have a typical InMemory OData Producer from odata4j sample code public static void main(String[] args) { final InMemoryProducer producer = new InMemoryProducer("InMemoryODataProducer",10); …
Whimusical
  • 6,401
  • 11
  • 62
  • 105
1
vote
1 answer

ODATA Filtering on DateTimeOffset

I'm trying to filter on a DateTimeOffset (myDate in the examples below). Since I want to ignore the time part, I believe the only way to filter is to compare separately the year, month and day components e.g. ...entities?$filter=year(myDate) eq…
Gep
  • 848
  • 13
  • 29
1
vote
1 answer

WCF Data Service compression for an Android client

I use a WCF Data Services service that resides in a Windows Service program and get data with an Android phone using Odata4j. I get lots of data from it and I need to compress the data coming from the Data Service. I was thinking of GZip as a…
Nestor
  • 8,194
  • 7
  • 77
  • 156
1
vote
0 answers

Posting batch request using odata4j consumer

I am planning to use ODATA4J libraries in our project. As of now , I have set of records that needs to be sent to ODATA services. Though I could send each record individually, I am looking for options to send it in a batch using ODATA4J. I could…