You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Pablo Leira <pl...@denodo.com> on 2017/10/23 12:46:02 UTC

Add a query string special parameter in a olingo request

Hi,
I 'm trying to access to the odata4 service of Dynamics 365 for finantials
using Olingo, and this service requires that all the queries specifies a
company For this, I need to build a URI with the parameter company, but
without  '$'or '@' .  I would want to get a URI like this:

https://financials.dynamics.com:7048/MS/ODataV4/salesDocuments?company='CRONUS%220US
'

So, I would like to know, if it is posible with the URIbuilder of olingo
build this kind of URI.

Thanks in advance

Pablo

Re: Add a query string special parameter in a olingo request

Posted by Ramesh Reddy <ra...@redhat.com>.
Mark,

I think I missed the "custom" query parameter in the question. I am not
sure how Olingo handles that currently.

Ramesh..
http://teiid.org

On Tue, Oct 24, 2017 at 10:08 AM, Mark Biamonte <Ma...@progress.com>
wrote:

> Ramesh,
>
>
>
> Maybe I am missing something in the question and response, but the OData
> 4.0 spec allows for custom query options to be specified in the query part
> of the URL.  Assuming the service understands the “company” custom query
> option in the URL below, that URL is a valid OData 4.0 URL.
>
>
>
> Regards
>
> Mark
>
>
>
> *From:* Ramesh Reddy [mailto:rareddy@redhat.com]
> *Sent:* Monday, October 23, 2017 9:19 AM
> *To:* user@olingo.apache.org
> *Subject:* Re: Add a query string special parameter in a olingo request
>
>
>
> Not currently, Olingo support 4.0 specification, allowing the parameters
> without $ is a feature of 4.0.1 OData specification, even then the service
> must allow both with/without $, so suggest you check with service
> implementation as it should support $ if it was 4.0.1 based service.
>
>
>
> Ramesh..
>
> http://teiid.org
>
>
>
> On Mon, Oct 23, 2017 at 7:46 AM, Pablo Leira <pl...@denodo.com> wrote:
>
> Hi,
>
> I 'm trying to access to the odata4 service of Dynamics 365 for finantials
> using Olingo, and this service requires that all the queries specifies a
> company For this, I need to build a URI with the parameter company, but
> without  '$'or '@' .  I would want to get a URI like this:
>
>  https://financials.dynamics.com:7048/MS/ODataV4/salesDocuments?company='
> CRONUS%220US'
>
>
>
> So, I would like to know, if it is posible with the URIbuilder of olingo
> build this kind of URI.
>
>
>
> Thanks in advance
>
>
>
> Pablo
>
>
>
>
>
>
>
>
>

RE: Add a query string special parameter in a olingo request

Posted by Mark Biamonte <Ma...@progress.com>.
Ramesh,

Maybe I am missing something in the question and response, but the OData 4.0 spec allows for custom query options to be specified in the query part of the URL.  Assuming the service understands the “company” custom query option in the URL below, that URL is a valid OData 4.0 URL.

Regards
Mark

From: Ramesh Reddy [mailto:rareddy@redhat.com]
Sent: Monday, October 23, 2017 9:19 AM
To: user@olingo.apache.org
Subject: Re: Add a query string special parameter in a olingo request

Not currently, Olingo support 4.0 specification, allowing the parameters without $ is a feature of 4.0.1 OData specification, even then the service must allow both with/without $, so suggest you check with service implementation as it should support $ if it was 4.0.1 based service.

Ramesh..
http://teiid.org

On Mon, Oct 23, 2017 at 7:46 AM, Pablo Leira <pl...@denodo.com>> wrote:
Hi,
I 'm trying to access to the odata4 service of Dynamics 365 for finantials using Olingo, and this service requires that all the queries specifies a company For this, I need to build a URI with the parameter company, but without  '$'or '@' .  I would want to get a URI like this:
 https://financials.dynamics.com:7048/MS/ODataV4/salesDocuments?company='CRONUS%220US'

So, I would like to know, if it is posible with the URIbuilder of olingo build this kind of URI.

Thanks in advance

Pablo






Re: Add a query string special parameter in a olingo request

Posted by Ramesh Reddy <ra...@redhat.com>.
Not currently, Olingo support 4.0 specification, allowing the parameters
without $ is a feature of 4.0.1 OData specification, even then the service
must allow both with/without $, so suggest you check with service
implementation as it should support $ if it was 4.0.1 based service.

Ramesh..
http://teiid.org

On Mon, Oct 23, 2017 at 7:46 AM, Pablo Leira <pl...@denodo.com> wrote:

> Hi,
> I 'm trying to access to the odata4 service of Dynamics 365 for finantials
> using Olingo, and this service requires that all the queries specifies a
> company For this, I need to build a URI with the parameter company, but
> without  '$'or '@' .  I would want to get a URI like this:
>  https://financials.dynamics.com:7048/MS/ODataV4/salesDocuments?company='
> CRONUS%220US'
>
> So, I would like to know, if it is posible with the URIbuilder of olingo
> build this kind of URI.
>
> Thanks in advance
>
> Pablo
>
>
>
>