I think there is a bug in the olingo4 component/endpoint. The (1) states that the serviceUri can be used as a query hence
from("olingo4://read/Products?serviceUri=" + serviceUri);
However, adding this to a simple test script (2), this results in an exception (3) that the serviceUri has not been set. Digging into the code it seems that the Olingo4Configuration is applied to the endpoint but only has the apiName and methodName set. Consequently, when the call configuration.getServiceUri() is called, the value is null.
- is related to
CAMEL-13006 Missing properties on Olingo4 consumer initialisation
CAMEL-13062 olingo2 component serviceUri not set