"Failed to resolve endpoint" error with component Olingo2 (ODATA)

Nine Stars

"Failed to resolve endpoint" error with component Olingo2 (ODATA)

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:

Capture.PNG

Capture.PNG

Capture3.PNG

When I enter this URL in a webbrowser, it works fine:

Capture.PNG


Could you help me ? 

I enclosed my route.

 

My talend version is 6.2.1


Regards. 

Eric 


Accepted Solutions
Nine Stars

Re: "Failed to resolve endpoint" error with component Olingo2 (ODATA)

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 


All Replies
Nine Stars

Re: "Failed to resolve endpoint" error with component Olingo2 (ODATA)

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"

Capture.PNG

 

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

Nine Stars

Re: "Failed to resolve endpoint" error with component Olingo2 (ODATA)

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 

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads