Skip to content

Instantly share code, notes, and snippets.

@ilgrosso
Created July 19, 2013 14:07
ODataJClient: Property value retrieve sample
ODataURIBuilder uriBuilder = new ODataURIBuilder(testODataServiceRootURL).
appendEntityTypeSegment("Customer(7)").appendStructuralSegment("CustomerId").appendValueSegment();
ODataValueRequest req = ODataRetrieveRequestFactory.getValueRequest(uriBuilder.build());
req.setFormat(ODataValueFormat.TEXT);
ODataValue value = req.execute().getBody();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment