You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by "Deinum, Achim" <Ac...@rewe-group.com> on 2018/05/17 12:41:06 UTC

Olingo 4 - Java - metadata=minimal - but server wants no metadata

Hi,



we got a problem with odata 4 (4.4.0 Java).



I try to post a new entity to the odata server and I get rejected with 500 error, because the server wants a payload without metadata BUT the content-type is:



Content-Type: application/json;odata.metadata=minimal



Payload:

{"@odata.type":"#com.sap.gateway.default.z15lo_poc_artikel_v4.v0001.Artikel","MANDT@odata.type<ma...@odata.type>":"String","MANDT":"321"}





I just can't find any method to remove the metadata in the payload or change the Content-Type from "none" (set by the client automatically when using JSON_NO_METADATA) to minimal without changing the payload.



The serverteam says they can't change the accepted Content-Type (it has to be minmal) and need a payload without metadata :-/



Any help is appreciated.


Achim Deinum
Enterprise Applications (TIEA)

REWE Systems GmbH

Domstraße 20 ▪ 50668 Köln
Büroanschrift: Humboldtstraße 140 – 144 ▪ 51149 Köln
Geschäftsführer: Jens Siebenhaar, Thomas Friedl
Registergericht, Sitz: Amtsgericht Köln (HRB15077), Köln

Telefon: +49 221 149-8969
Telefax: +49 221 149-978969
E-Mail: achim.deinum@rewe-group.com<ma...@rewe-group.com>
Internet: www.rewe-systems.com<http://www.rewe-systems.com/>

Ein Unternehmen der REWE GROUP.
Internet: www.rewe-group.com

Denken Sie an die Umwelt. Drucken Sie diese E-Mail nur, wenn Sie den Ausdruck wirklich brauchen.