You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by eq...@laposte.net on 2017/10/27 06:57:27 UTC

"Failed to resolve endpoint" error with component Olingo2

Hi, 

I'm trying to do a basic test with olingo2 component. 

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://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] 

Could you help me ? 

Thanks for your help. 

Regards. 

Eric 


Re: "Failed to resolve endpoint" error with component Olingo2

Posted by eq...@laposte.net.
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 
----- Mail original -----

De: "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com> 
À: "eric44" 
Envoyé: Samedi 28 Octobre 2017 09:19:13 
Objet: Re: "Failed to resolve endpoint" error with component Olingo2 

The documentation is here 
https://github.com/apache/camel/blob/master/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc 

The doc on github is the up to date doc, see the top of the Apache 
Camel front page 


Re: "Failed to resolve endpoint" error with component Olingo2

Posted by Claus Ibsen <cl...@gmail.com>.
There is a camel-olingo4 component

On Tue, Oct 31, 2017 at 3:01 PM,  <eq...@laposte.net> wrote:
> 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
> ----- Mail original -----
>
> De: "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com>
> À: "eric44"
> Envoyé: Samedi 28 Octobre 2017 09:19:13
> Objet: Re: "Failed to resolve endpoint" error with component Olingo2
>
> The documentation is here
> https://github.com/apache/camel/blob/master/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc
>
> The doc on github is the up to date doc, see the top of the Apache
> Camel front page
>
>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: "Failed to resolve endpoint" error with component Olingo2

Posted by eq...@laposte.net.
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 
----- Mail original -----

De: "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com> 
À: "eric44" 
Envoyé: Samedi 28 Octobre 2017 09:19:13 
Objet: Re: "Failed to resolve endpoint" error with component Olingo2 

The documentation is here 
https://github.com/apache/camel/blob/master/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc 

The doc on github is the up to date doc, see the top of the Apache 
Camel front page 



Re: "Failed to resolve endpoint" error with component Olingo2

Posted by Claus Ibsen <cl...@gmail.com>.
The documentation is here
https://github.com/apache/camel/blob/master/components/camel-olingo2/camel-olingo2-component/src/main/docs/olingo2-component.adoc

The doc on github is the up to date doc, see the top of the Apache
Camel front page

On Sat, Oct 28, 2017 at 7:57 AM,  <eq...@laposte.net> wrote:
> Hi,
>
> According to documentation ( http://camel.apache.org/olingo2.html ), it is a vailable as of Camel 2.14.
>
> I did a test with a newer but it doesn't help
>
> In every use cases of documentation, the URI is not populated. I would need an example with this parameter.
>
> Eric
>
> ----- Mail original -----
>
> De: "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com>
> À: "eric44"
> Envoyé: Vendredi 27 Octobre 2017 09:45:47
> Objet: Re: "Failed to resolve endpoint" error with component Olingo2
>
> Try with a newer version you are using a bit old version and it may be
> that this older version does not have support for that api you are
> using.
>
> If you must use 2.16.x then check the source code or unit tests to
> find some examples, where you can browse that 2.16.3 tag on github
> etc.
>
>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: "Failed to resolve endpoint" error with component Olingo2

Posted by eq...@laposte.net.
Hi, 

According to documentation ( http://camel.apache.org/olingo2.html ), it is a vailable as of Camel 2.14. 

I did a test with a newer but it doesn't help 

In every use cases of documentation, the URI is not populated. I would need an example with this parameter. 

Eric 

----- Mail original -----

De: "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com> 
À: "eric44" 
Envoyé: Vendredi 27 Octobre 2017 09:45:47 
Objet: Re: "Failed to resolve endpoint" error with component Olingo2 

Try with a newer version you are using a bit old version and it may be 
that this older version does not have support for that api you are 
using. 

If you must use 2.16.x then check the source code or unit tests to 
find some examples, where you can browse that 2.16.3 tag on github 
etc. 



Re: "Failed to resolve endpoint" error with component Olingo2

Posted by Claus Ibsen <cl...@gmail.com>.
Try with a newer version you are using a bit old version and it may be
that this older version does not have support for that api you are
using.

If you must use 2.16.x then check the source code or unit tests to
find some examples, where you can browse that 2.16.3 tag on github
etc.

On Fri, Oct 27, 2017 at 9:33 AM,  <eq...@laposte.net> wrote:
> Hi,
>
> My camel version is 2.16.3
>
> Eric
> ----- Mail original -----
>
> De: "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com>
> À: "eric44"
> Envoyé: Vendredi 27 Octobre 2017 09:07:43
> Objet: Re: "Failed to resolve endpoint" error with component Olingo2
>
> What version of Camel do you use?
>
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/Failed-to-resolve-endpoint-error-with-component-Olingo2-tp5814902p5814907.html
> To unsubscribe from Camel - Users, click here .
> NAML
>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: "Failed to resolve endpoint" error with component Olingo2

Posted by eq...@laposte.net.
Hi, 

My camel version is 2.16.3 

Eric 
----- Mail original -----

De: "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com> 
À: "eric44" 
Envoyé: Vendredi 27 Octobre 2017 09:07:43 
Objet: Re: "Failed to resolve endpoint" error with component Olingo2 

What version of Camel do you use? 

Claus Ibsen 
----------------- 
http://davsclaus.com @davsclaus 
Camel in Action 2: https://www.manning.com/ibsen2 



If you reply to this email, your message will be added to the discussion below: 
http://camel.465427.n5.nabble.com/Failed-to-resolve-endpoint-error-with-component-Olingo2-tp5814902p5814907.html 
To unsubscribe from Camel - Users, click here . 
NAML 


Re: "Failed to resolve endpoint" error with component Olingo2

Posted by Claus Ibsen <cl...@gmail.com>.
What version of Camel do you use?

On Fri, Oct 27, 2017 at 8:57 AM,  <eq...@laposte.net> wrote:
> Hi,
>
> I'm trying to do a basic test with olingo2 component.
>
> 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://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]
>
> Could you help me ?
>
> Thanks for your help.
>
> Regards.
>
> Eric
>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2