Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm trying to do a basic test with olingo2 component. This component enables to run ODATA connection
I may have misunderstood component documentation...
The URL I want to query is http://services.odata.org/V4/Northwind/Northwind.svc/Products
My endpoint looks like:
.to("olingo2://read/Products?serviceUri=http://services.odata.org/V4/Northwind/Northwind.svc")
I get this error message:
. because of Failed to resolve endpoint: olingo2://Products?serviceUri=http%3A%2F%2Fservices.odata.org%2FV4%2FNorthwind%2FNorthwind.svc due to: No matching method for /Products, with arguments [responseHandler, queryParams, edm]
My route looks like:
When I enter this URL in a webbrowser, it works fine:
Could you help me ?
I enclosed my route.
My talend version is 6.2.1
Regards.
Eric
Hi,
It looks like Olingo2 doesn't support ODATA 3.0 and 4.0. With 2.0 version it works fine:
http://services.odata.org/V2/Northwind/Northwind.svc
Eric
Hi,
I declared the service URI in my spring XML with:
<bean id="odata"
class="org.apache.camel.component.olingo2.Olingo2Component">
<property name="configuration">
<bean class="org.apache.camel.component.olingo2.Olingo2Configuration">
<property name="serviceUri"
value="http://services.odata.org/V4/Northwind/Northwind.svc"/>
</bean>
</property>
</bean>
And I run the ODATA connection with:
"odata://read/Products"
It is getting better, but I still have an error:
org.apache.camel.RuntimeCamelException: Error reading EDM: Invalid or missing namespace for 'Schema'
Any help would be appreciated.
Eric
Hi,
It looks like Olingo2 doesn't support ODATA 3.0 and 4.0. With 2.0 version it works fine:
http://services.odata.org/V2/Northwind/Northwind.svc
Eric