What steps will reproduce the problem?
1.Trying to hit the producer from consumer implemented in java
2. from the producer, response in json format is not returned.
3. It throws following excep "java.lang.IllegalArgumentException: no valid
OData JSON format (expected EndProperty got
Value(OComplexObject[OProperty[symbol,EdmSimpleType[Edm.String],GOOG],OProperty[
price,EdmSimpleType[Edm.Decimal],580.700000],OProperty[openPrice,EdmSimpleType[E
dm.Decimal],0.000000],OProperty[highPrice,EdmSimpleType[Edm.Decimal],0.000000],O
Property[lowPrice,EdmSimpleType[Edm.Decimal],0.000000],OProperty[hi52,EdmSimpleT
ype[Edm.Decimal],642.960000],OProperty[lo52,EdmSimpleType[Edm.Decimal],433.63000
0]]))"
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
I m using Odata 0.5 in Linux
Please provide any additional information below.
While hitting it from brower it works fine, but while hitting from java class,
it throws an exception.
code that hits the producer is
Builder builder =
ODataConsumer.newBuilder("http://localhost:8886/Trading.svc/");
FormatType format = FormatType.JSON;
builder.setFormatType(FormatType.JSON);
ODataConsumer c = builder.build();
"c.callFunction("getQuotes").pString("symbol", "GOOG").iterator().hasNext();"
Original issue reported on code.google.com by jans...@gmail.com on 20 Oct 2011 at 10:12
Original issue reported on code.google.com by
jans...@gmail.com
on 20 Oct 2011 at 10:12