You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Pedro Henrique Massa Pilz <pe...@synchro.com.br> on 2016/08/11 20:11:42 UTC
Re: Olingo + JAX-RS
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
De: "Pedro Henrique Massa Pilz" <pe...@synchro.com.br>
Para: user@olingo.apache.org
Enviadas: Quinta-feira, 11 de agosto de 2016 15:30:32
Assunto: Re: Olingo + JAX-RS
Hello, good morning!
I'm trying to build a OData producer in my project that already exists and uses JAX-RS (Jersey) and many other frameworks.
I didn't found any document to help me in exposition of OData data or even metadata in Olingo's website.
Do you might have an idea where i can find it?
Thanks for you all people!
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
RE: **SPAM**RE: Olingo + JAX-RS
Posted by mibo <mi...@apache.org>.
Hi Erwan,
to skip one (or more) path segments for Olingo (OData processing) you can add path split informations [1].
The necessary parameter ("org.apache.olingo.odata2.path.split") must be set as init parameter for the servlet.
Best Regards, Michael
[1]: http://olingo.apache.org/doc/odata2/tutorials/Olingo_Tutorial_Advanced_Service_Resolution.html
Am 12. August 2016 um 17:15:04, Erwan LETESSIER (erwan.letessier@ingenico.com) schrieb:
Hi,
Merely servlet path mapping.
Here is how to declare the servlet :
@WebServlet(urlPatterns = {"/olingo/*"}, loadOnStartup = 1)
public class EntryPoint extends HttpServlet
Cheers,
Erwan
De : Pedro Henrique Massa Pilz [mailto:pedro.pilz@synchro.com.br]
Envoyé : vendredi 12 août 2016 16:26
À : user@olingo.apache.org
Objet : Re: **SPAM**RE: Olingo + JAX-RS
Hi,
Thanks for you all.
I've did like you suggested Erwan, but i had a problem because my wish is to use Olingo as a path down in the environment. Like: root -> '/olingo' -> in this path i would use all the resources of Olingo (like $metadata and all other).
When i did this, processing the request, Olingo returned for me an error telling that i don't have an entitiy called 'olingo'.
There's a way to set '/olingo' as de root path for it and use the framework's resources?
Thanks in advance.
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
De: "Erwan LETESSIER" <Er...@ingenico.com>
Para: "user@olingo.apache.org" <us...@olingo.apache.org>
Enviadas: Sexta-feira, 12 de agosto de 2016 9:23:53
Assunto: **SPAM**RE: Olingo + JAX-RS
Hi
I met the situation: wanted to add olingo to a pre-existing jax-rs application.
You may pass the httpServletRequest/response retrieved from the context (when using jax-rs)
With jax-rs on top of olingo, you would just add some URI mapping (with all difficulties to express jax-rs path patterns for odata URI).
Odata already processes by itself the URI from httpServletRequest and writes the httpServletResponse
Then indeed, I would recommend at least a new servlet.
I eventually even put all olingo app into a new webapp to avoid dependencies (versions) conflicts.
Cheers,
Erwan
De : Amend, Christian [mailto:christian.amend@sap.com]
Envoyé : vendredi 12 août 2016 11:14
À : user@olingo.apache.org
Objet : RE: Olingo + JAX-RS
Hi,
Olingo V2 uses only a basic version of JaxRs to get an entry point. A better way would be to use the plain Java Servlet. But if you already have an existing environment I can`t give guidance on how to integrate Olingo as I don`t know the dependencies you have.
The tutorials can be found on the Olingo website:
http://olingo.apache.org/doc/odata2/index.html
http://olingo.apache.org/doc/odata4/index.html
For V2 you could try the basic read scenario: http://olingo.apache.org/doc/odata2/tutorials/basicread.html
Or you have a look at the sample code: http://olingo.apache.org/doc/odata2/sample-setup.html
Best Regards,
Christian
From: Pedro Henrique Massa Pilz [mailto:pedro.pilz@synchro.com.br]
Sent: Donnerstag, 11. August 2016 22:12
To: user@olingo.apache.org
Subject: Re: Olingo + JAX-RS
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
De: "Pedro Henrique Massa Pilz" <pe...@synchro.com.br>
Para: user@olingo.apache.org
Enviadas: Quinta-feira, 11 de agosto de 2016 15:30:32
Assunto: Re: Olingo + JAX-RS
Hello, good morning!
I'm trying to build a OData producer in my project that already exists and uses JAX-RS (Jersey) and many other frameworks.
I didn't found any document to help me in exposition of OData data or even metadata in Olingo's website.
Do you might have an idea where i can find it?
Thanks for you all people!
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.
RE: **SPAM**RE: Olingo + JAX-RS
Posted by Erwan LETESSIER <Er...@ingenico.com>.
Hi,
Merely servlet path mapping.
Here is how to declare the servlet :
@WebServlet(urlPatterns = {"/olingo/*"}, loadOnStartup = 1)
public class EntryPoint extends HttpServlet
Cheers,
Erwan
De : Pedro Henrique Massa Pilz [mailto:pedro.pilz@synchro.com.br]
Envoyé : vendredi 12 août 2016 16:26
À : user@olingo.apache.org
Objet : Re: **SPAM**RE: Olingo + JAX-RS
Hi,
Thanks for you all.
I've did like you suggested Erwan, but i had a problem because my wish is to use Olingo as a path down in the environment. Like: root -> '/olingo' -> in this path i would use all the resources of Olingo (like $metadata and all other).
When i did this, processing the request, Olingo returned for me an error telling that i don't have an entitiy called 'olingo'.
There's a way to set '/olingo' as de root path for it and use the framework's resources?
Thanks in advance.
Att.,
Pedro Henrique Massa Pilz<ma...@synchro.com.br> | Analista Desenvolvedor | Tel: +55 19 2512 9200 <callto:+55%2019%202512%209200> | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
________________________________
De: "Erwan LETESSIER" <Er...@ingenico.com>>
Para: "user@olingo.apache.org<ma...@olingo.apache.org>" <us...@olingo.apache.org>>
Enviadas: Sexta-feira, 12 de agosto de 2016 9:23:53
Assunto: **SPAM**RE: Olingo + JAX-RS
Hi
I met the situation: wanted to add olingo to a pre-existing jax-rs application.
You may pass the httpServletRequest/response retrieved from the context (when using jax-rs)
With jax-rs on top of olingo, you would just add some URI mapping (with all difficulties to express jax-rs path patterns for odata URI).
Odata already processes by itself the URI from httpServletRequest and writes the httpServletResponse
Then indeed, I would recommend at least a new servlet.
I eventually even put all olingo app into a new webapp to avoid dependencies (versions) conflicts.
Cheers,
Erwan
De : Amend, Christian [mailto:christian.amend@sap.com]
Envoyé : vendredi 12 août 2016 11:14
À : user@olingo.apache.org<ma...@olingo.apache.org>
Objet : RE: Olingo + JAX-RS
Hi,
Olingo V2 uses only a basic version of JaxRs to get an entry point. A better way would be to use the plain Java Servlet. But if you already have an existing environment I can`t give guidance on how to integrate Olingo as I don`t know the dependencies you have.
The tutorials can be found on the Olingo website:
http://olingo.apache.org/doc/odata2/index.html
http://olingo.apache.org/doc/odata4/index.html
For V2 you could try the basic read scenario: http://olingo.apache.org/doc/odata2/tutorials/basicread.html
Or you have a look at the sample code: http://olingo.apache.org/doc/odata2/sample-setup.html
Best Regards,
Christian
From: Pedro Henrique Massa Pilz [mailto:pedro.pilz@synchro.com.br]
Sent: Donnerstag, 11. August 2016 22:12
To: user@olingo.apache.org<ma...@olingo.apache.org>
Subject: Re: Olingo + JAX-RS
Att.,
Pedro Henrique Massa Pilz<ma...@synchro.com.br> | Analista Desenvolvedor | Tel: +55 19 2512 9200 <callto:+55%2019%202512%209200> | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
________________________________
De: "Pedro Henrique Massa Pilz" <pe...@synchro.com.br>>
Para: user@olingo.apache.org<ma...@olingo.apache.org>
Enviadas: Quinta-feira, 11 de agosto de 2016 15:30:32
Assunto: Re: Olingo + JAX-RS
Hello, good morning!
I'm trying to build a OData producer in my project that already exists and uses JAX-RS (Jersey) and many other frameworks.
I didn't found any document to help me in exposition of OData data or even metadata in Olingo's website.
Do you might have an idea where i can find it?
Thanks for you all people!
Att.,
Pedro Henrique Massa Pilz<ma...@synchro.com.br> | Analista Desenvolvedor | Tel: +55 19 2512 9200 <callto:+55%2019%202512%209200> | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.
Re: **SPAM**RE: Olingo + JAX-RS
Posted by Pedro Henrique Massa Pilz <pe...@synchro.com.br>.
Hi,
Thanks for you all.
I've did like you suggested Erwan, but i had a problem because my wish is to use Olingo as a path down in the environment. Like: root -> '/olingo' -> in this path i would use all the resources of Olingo (like $metadata and all other).
When i did this, processing the request, Olingo returned for me an error telling that i don't have an entitiy called 'olingo'.
There's a way to set '/olingo' as de root path for it and use the framework's resources?
Thanks in advance.
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
De: "Erwan LETESSIER" <Er...@ingenico.com>
Para: "user@olingo.apache.org" <us...@olingo.apache.org>
Enviadas: Sexta-feira, 12 de agosto de 2016 9:23:53
Assunto: **SPAM**RE: Olingo + JAX-RS
Hi
I met the situation: wanted to add olingo to a pre-existing jax-rs application.
You may pass the httpServletRequest/response retrieved from the context (when using jax-rs)
With jax-rs on top of olingo, you would just add some URI mapping (with all difficulties to express jax-rs path patterns for odata URI).
Odata already processes by itself the URI from httpServletRequest and writes the httpServletResponse
Then indeed, I would recommend at least a new servlet.
I eventually even put all olingo app into a new webapp to avoid dependencies (versions) conflicts.
Cheers,
Erwan
De : Amend, Christian [mailto:christian.amend@sap.com]
Envoyé : vendredi 12 août 2016 11:14
À : user@olingo.apache.org
Objet : RE: Olingo + JAX-RS
Hi,
Olingo V2 uses only a basic version of JaxRs to get an entry point. A better way would be to use the plain Java Servlet. But if you already have an existing environment I can`t give guidance on how to integrate Olingo as I don`t know the dependencies you have.
The tutorials can be found on the Olingo website:
http://olingo.apache.org/doc/odata2/index.html
http://olingo.apache.org/doc/odata4/index.html
For V2 you could try the basic read scenario: http://olingo.apache.org/doc/odata2/tutorials/basicread.html
Or you have a look at the sample code: http://olingo.apache.org/doc/odata2/sample-setup.html
Best Regards,
Christian
From: Pedro Henrique Massa Pilz [ mailto:pedro.pilz@synchro.com.br ]
Sent: Donnerstag, 11. August 2016 22:12
To: user@olingo.apache.org
Subject: Re: Olingo + JAX-RS
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
De: "Pedro Henrique Massa Pilz" < pedro.pilz@synchro.com.br >
Para: user@olingo.apache.org
Enviadas: Quinta-feira, 11 de agosto de 2016 15:30:32
Assunto: Re: Olingo + JAX-RS
Hello, good morning!
I'm trying to build a OData producer in my project that already exists and uses JAX-RS (Jersey) and many other frameworks.
I didn't found any document to help me in exposition of OData data or even metadata in Olingo's website.
Do you might have an idea where i can find it?
Thanks for you all people!
Att.,
Pedro Henrique Massa Pilz | Analista Desenvolvedor | Tel: +55 19 2512 9200 | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.
RE: Olingo + JAX-RS
Posted by Erwan LETESSIER <Er...@ingenico.com>.
Hi
I met the situation: wanted to add olingo to a pre-existing jax-rs application.
You may pass the httpServletRequest/response retrieved from the context (when using jax-rs)
With jax-rs on top of olingo, you would just add some URI mapping (with all difficulties to express jax-rs path patterns for odata URI).
Odata already processes by itself the URI from httpServletRequest and writes the httpServletResponse
Then indeed, I would recommend at least a new servlet.
I eventually even put all olingo app into a new webapp to avoid dependencies (versions) conflicts.
Cheers,
Erwan
De : Amend, Christian [mailto:christian.amend@sap.com]
Envoyé : vendredi 12 août 2016 11:14
À : user@olingo.apache.org
Objet : RE: Olingo + JAX-RS
Hi,
Olingo V2 uses only a basic version of JaxRs to get an entry point. A better way would be to use the plain Java Servlet. But if you already have an existing environment I can`t give guidance on how to integrate Olingo as I don`t know the dependencies you have.
The tutorials can be found on the Olingo website:
http://olingo.apache.org/doc/odata2/index.html
http://olingo.apache.org/doc/odata4/index.html
For V2 you could try the basic read scenario: http://olingo.apache.org/doc/odata2/tutorials/basicread.html
Or you have a look at the sample code: http://olingo.apache.org/doc/odata2/sample-setup.html
Best Regards,
Christian
From: Pedro Henrique Massa Pilz [mailto:pedro.pilz@synchro.com.br]
Sent: Donnerstag, 11. August 2016 22:12
To: user@olingo.apache.org<ma...@olingo.apache.org>
Subject: Re: Olingo + JAX-RS
Att.,
Pedro Henrique Massa Pilz<ma...@synchro.com.br> | Analista Desenvolvedor | Tel: +55 19 2512 9200 <callto:+55%2019%202512%209200> | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
________________________________
De: "Pedro Henrique Massa Pilz" <pe...@synchro.com.br>>
Para: user@olingo.apache.org<ma...@olingo.apache.org>
Enviadas: Quinta-feira, 11 de agosto de 2016 15:30:32
Assunto: Re: Olingo + JAX-RS
Hello, good morning!
I'm trying to build a OData producer in my project that already exists and uses JAX-RS (Jersey) and many other frameworks.
I didn't found any document to help me in exposition of OData data or even metadata in Olingo's website.
Do you might have an idea where i can find it?
Thanks for you all people!
Att.,
Pedro Henrique Massa Pilz<ma...@synchro.com.br> | Analista Desenvolvedor | Tel: +55 19 2512 9200 <callto:+55%2019%202512%209200> | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.
RE: Olingo + JAX-RS
Posted by "Amend, Christian" <ch...@sap.com>.
Hi,
Olingo V2 uses only a basic version of JaxRs to get an entry point. A better way would be to use the plain Java Servlet. But if you already have an existing environment I can`t give guidance on how to integrate Olingo as I don`t know the dependencies you have.
The tutorials can be found on the Olingo website:
http://olingo.apache.org/doc/odata2/index.html
http://olingo.apache.org/doc/odata4/index.html
For V2 you could try the basic read scenario: http://olingo.apache.org/doc/odata2/tutorials/basicread.html
Or you have a look at the sample code: http://olingo.apache.org/doc/odata2/sample-setup.html
Best Regards,
Christian
From: Pedro Henrique Massa Pilz [mailto:pedro.pilz@synchro.com.br]
Sent: Donnerstag, 11. August 2016 22:12
To: user@olingo.apache.org
Subject: Re: Olingo + JAX-RS
Att.,
Pedro Henrique Massa Pilz<ma...@synchro.com.br> | Analista Desenvolvedor | Tel: +55 19 2512 9200 <callto:+55%2019%202512%209200> | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS
________________________________
De: "Pedro Henrique Massa Pilz" <pe...@synchro.com.br>>
Para: user@olingo.apache.org<ma...@olingo.apache.org>
Enviadas: Quinta-feira, 11 de agosto de 2016 15:30:32
Assunto: Re: Olingo + JAX-RS
Hello, good morning!
I'm trying to build a OData producer in my project that already exists and uses JAX-RS (Jersey) and many other frameworks.
I didn't found any document to help me in exposition of OData data or even metadata in Olingo's website.
Do you might have an idea where i can find it?
Thanks for you all people!
Att.,
Pedro Henrique Massa Pilz<ma...@synchro.com.br> | Analista Desenvolvedor | Tel: +55 19 2512 9200 <callto:+55%2019%202512%209200> | Ramal: 9352
SYNCHRO Solução Fiscal | SPED | NFe | CTe | Inteligência Tributária | Classificação Fiscal
Siga-nos no Twitter @SynchroSOLFIS