You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Louis Mazet <ma...@gmail.com> on 2015/06/17 21:26:20 UTC
Xml Format response
Does Olingo v4 java (I am using the tutorial here
<https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html>)
not support the atom xml as an output format? I am trying to create a web
service that will output something similar to this :
<content type="application/xml">
<m:properties>
<d:CompanyName>Alfreds Futterkiste</d:CompanyName>
<d:Address>Obere Str. 57</d:Address>
<d:Phone>030-0074321</d:Phone>
<d:PostalCode>12209</d:PostalCode>
<d:Region m:null="true"/>
<d:Country>Germany</d:Country>
<d:CustomerID>ALFKI</d:CustomerID>
<d:City>Berli</d:City>
<d:Fax>030-0076545</d:Fax>
<d:ContactName>Maria Anders</d:ContactName>
<d:ContactTitle>Sales Representative</d:ContactTitle>
</m:properties>
</content>
Every option I have tried yields me a "not implemented exception". I have
poked around in the code of the different serializers, and the only one
that is fully implemented is the JSON one.
I need this format because some applications working with oData
specifically expect the format to be atom, and will not work with JSON
(Tableau, specifically)
Thank you,
Louis
Re: Xml Format response
Posted by Ramesh Reddy <ra...@redhat.com>.
It has been requested in this JIRA https://issues.apache.org/jira/browse/OLINGO-705
I was hoping I could get this implemented, but no availability yet. Let me know if you want contribute.
----- Original Message -----
> Does Olingo v4 java (I am using the tutorial here ) not support the atom xml
> as an output format? I am trying to create a web service that will output
> something similar to this :
> <content type="application/xml">
> <m:properties>
> <d:CompanyName>Alfreds Futterkiste</d:CompanyName>
> <d:Address>Obere Str. 57</d:Address>
> <d:Phone>030-0074321</d:Phone>
> <d:PostalCode>12209</d:PostalCode>
> <d:Region m:null="true"/>
> <d:Country>Germany</d:Country>
> <d:CustomerID>ALFKI</d:CustomerID>
> <d:City>Berli</d:City>
> <d:Fax>030-0076545</d:Fax>
> <d:ContactName>Maria Anders</d:ContactName>
> <d:ContactTitle>Sales Representative</d:ContactTitle>
> </m:properties>
> </content>
> Every option I have tried yields me a "not implemented exception". I have
> poked around in the code of the different serializers, and the only one that
> is fully implemented is the JSON one.
> I need this format because some applications working with oData specifically
> expect the format to be atom, and will not work with JSON (Tableau,
> specifically)
> Thank you,
> Louis
Re: Xml Format response
Posted by Ramesh Reddy <ra...@redhat.com>.
Hi Louis,
Happy to report that XML formatting now available in Olingo 4 with latest stuff (not beta3), I would really if can test it and give feedback.
Ramesh..
----- Original Message -----
> Hello Louis,
> With OData V4 the JSON is the default output format.
> Hence, we decided for the first release of Olingo V4 to support only the
> default format (JSON).
> Additional formats like XML would be implemented probably after the first
> release.
> However, the Olingo community is always pleased about contributions ;o)
> Best regards,
> Michael
> > On 17 Jun 2015, at 21:26, Louis Mazet < mazetlouis@gmail.com > wrote:
>
> > Does Olingo v4 java (I am using the tutorial here ) not support the atom
> > xml
> > as an output format? I am trying to create a web service that will output
> > something similar to this :
>
> > <content type="application/xml">
>
> > <m:properties>
>
> > <d:CompanyName>Alfreds Futterkiste</d:CompanyName>
>
> > <d:Address>Obere Str. 57</d:Address>
>
> > <d:Phone>030-0074321</d:Phone>
>
> > <d:PostalCode>12209</d:PostalCode>
>
> > <d:Region m:null="true"/>
>
> > <d:Country>Germany</d:Country>
>
> > <d:CustomerID>ALFKI</d:CustomerID>
>
> > <d:City>Berli</d:City>
>
> > <d:Fax>030-0076545</d:Fax>
>
> > <d:ContactName>Maria Anders</d:ContactName>
>
> > <d:ContactTitle>Sales Representative</d:ContactTitle>
>
> > </m:properties>
>
> > </content>
>
> > Every option I have tried yields me a "not implemented exception". I have
> > poked around in the code of the different serializers, and the only one
> > that
> > is fully implemented is the JSON one.
>
> > I need this format because some applications working with oData
> > specifically
> > expect the format to be atom, and will not work with JSON (Tableau,
> > specifically)
>
> > Thank you,
>
> > Louis
>
Re: Xml Format response
Posted by "Bolz, Michael" <mi...@sap.com>.
Hello Louis,
With OData V4 the JSON is the default output format.
Hence, we decided for the first release of Olingo V4 to support only the default format (JSON).
Additional formats like XML would be implemented probably after the first release.
However, the Olingo community is always pleased about contributions ;o)
Best regards,
Michael
> On 17 Jun 2015, at 21:26, Louis Mazet <ma...@gmail.com> wrote:
>
> Does Olingo v4 java (I am using the tutorial here <https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html>) not support the atom xml as an output format? I am trying to create a web service that will output something similar to this :
>
> <content type="application/xml">
> <m:properties>
> <d:CompanyName>Alfreds Futterkiste</d:CompanyName>
> <d:Address>Obere Str. 57</d:Address>
> <d:Phone>030-0074321</d:Phone>
> <d:PostalCode>12209</d:PostalCode>
> <d:Region m:null="true"/>
> <d:Country>Germany</d:Country>
> <d:CustomerID>ALFKI</d:CustomerID>
> <d:City>Berli</d:City>
> <d:Fax>030-0076545</d:Fax>
> <d:ContactName>Maria Anders</d:ContactName>
> <d:ContactTitle>Sales Representative</d:ContactTitle>
> </m:properties>
> </content>
>
> Every option I have tried yields me a "not implemented exception". I have poked around in the code of the different serializers, and the only one that is fully implemented is the JSON one.
>
> I need this format because some applications working with oData specifically expect the format to be atom, and will not work with JSON (Tableau, specifically)
>
> Thank you,
>
> Louis
>
>
>
RE: Xml Format response
Posted by "Handl, Ralf" <ra...@sap.com>.
Hi Louis,
That’s the URL I tried with the test version (again just now), and it doesn’t work: metadata access is fine, but trying to get the actual data extract fails. Which is why I suspected that it doesn’t work with V4.
--Ralf
From: Louis Mazet [mailto:mazetlouis@gmail.com]
Sent: Freitag, 19. Juni 2015 15:50
To: user@olingo.apache.org
Subject: Re: Xml Format response
Hello,
Tableau does work with oData V4, provided you specify the output format as atom.
For example, while the url you provided does not work with tableau, this one does :
http://services.odata.org/V4/Northwind/Northwind.svc/Customers?$format=atom
Louis
On 19 June 2015 at 07:02, Handl, Ralf <ra...@sap.com>> wrote:
Hi Louis,
Does Tableau work with OData V4 at all? Using the 9.0 test version I could connect to the public V2 Northwind OData service<http://services.odata.org/V2/Northwind/Northwind.svc/Customers> without problems, but I didn’t get it to work with the V4 Northwind OData service.
Thanks in advance!
--Ralf
From: Louis Mazet [mailto:mazetlouis@gmail.com<ma...@gmail.com>]
Sent: Mittwoch, 17. Juni 2015 21:26
To: user@olingo.apache.org<ma...@olingo.apache.org>
Subject: Xml Format response
Does Olingo v4 java (I am using the tutorial here<https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html>) not support the atom xml as an output format? I am trying to create a web service that will output something similar to this :
<content type="application/xml">
<m:properties>
<d:CompanyName>Alfreds Futterkiste</d:CompanyName>
<d:Address>Obere Str. 57</d:Address>
<d:Phone>030-0074321</d:Phone>
<d:PostalCode>12209</d:PostalCode>
<d:Region m:null="true"/>
<d:Country>Germany</d:Country>
<d:CustomerID>ALFKI</d:CustomerID>
<d:City>Berli</d:City>
<d:Fax>030-0076545</d:Fax>
<d:ContactName>Maria Anders</d:ContactName>
<d:ContactTitle>Sales Representative</d:ContactTitle>
</m:properties>
</content>
Every option I have tried yields me a "not implemented exception". I have poked around in the code of the different serializers, and the only one that is fully implemented is the JSON one.
I need this format because some applications working with oData specifically expect the format to be atom, and will not work with JSON (Tableau, specifically)
Thank you,
Louis
Re: Xml Format response
Posted by Louis Mazet <ma...@gmail.com>.
Hello,
Tableau does work with oData V4, provided you specify the output format as
atom.
For example, while the url you provided does not work with tableau, this
one does :
http://services.odata.org/V4/Northwind/Northwind.svc/Customers?$format=atom
Louis
On 19 June 2015 at 07:02, Handl, Ralf <ra...@sap.com> wrote:
> Hi Louis,
>
>
>
> Does Tableau work with OData V4 at all? Using the 9.0 test version I
> could connect to the public V2 Northwind OData service
> <http://services.odata.org/V2/Northwind/Northwind.svc/Customers> without
> problems, but I didn’t get it to work with the V4 Northwind OData service.
>
>
>
> Thanks in advance!
> --Ralf
>
>
>
> *From:* Louis Mazet [mailto:mazetlouis@gmail.com]
> *Sent:* Mittwoch, 17. Juni 2015 21:26
> *To:* user@olingo.apache.org
> *Subject:* Xml Format response
>
>
>
> Does Olingo v4 java (I am using the tutorial here
> <https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html>)
> not support the atom xml as an output format? I am trying to create a web
> service that will output something similar to this :
>
>
>
> <content type="application/xml">
>
> <m:properties>
>
> <d:CompanyName>Alfreds Futterkiste</d:CompanyName>
>
> <d:Address>Obere Str. 57</d:Address>
>
> <d:Phone>030-0074321</d:Phone>
>
> <d:PostalCode>12209</d:PostalCode>
>
> <d:Region m:null="true"/>
>
> <d:Country>Germany</d:Country>
>
> <d:CustomerID>ALFKI</d:CustomerID>
>
> <d:City>Berli</d:City>
>
> <d:Fax>030-0076545</d:Fax>
>
> <d:ContactName>Maria Anders</d:ContactName>
>
> <d:ContactTitle>Sales
> Representative</d:ContactTitle>
>
> </m:properties>
>
> </content>
>
>
>
> Every option I have tried yields me a "not implemented exception". I have
> poked around in the code of the different serializers, and the only one
> that is fully implemented is the JSON one.
>
>
>
> I need this format because some applications working with oData
> specifically expect the format to be atom, and will not work with JSON
> (Tableau, specifically)
>
>
>
> Thank you,
>
>
>
> Louis
>
>
>
>
>
>
>
RE: Xml Format response
Posted by "Handl, Ralf" <ra...@sap.com>.
Hi Louis,
Does Tableau work with OData V4 at all? Using the 9.0 test version I could connect to the public V2 Northwind OData service<http://services.odata.org/V2/Northwind/Northwind.svc/Customers> without problems, but I didn’t get it to work with the V4 Northwind OData service.
Thanks in advance!
--Ralf
From: Louis Mazet [mailto:mazetlouis@gmail.com]
Sent: Mittwoch, 17. Juni 2015 21:26
To: user@olingo.apache.org
Subject: Xml Format response
Does Olingo v4 java (I am using the tutorial here<https://olingo.apache.org/doc/odata4/tutorials/read/tutorial_read.html>) not support the atom xml as an output format? I am trying to create a web service that will output something similar to this :
<content type="application/xml">
<m:properties>
<d:CompanyName>Alfreds Futterkiste</d:CompanyName>
<d:Address>Obere Str. 57</d:Address>
<d:Phone>030-0074321</d:Phone>
<d:PostalCode>12209</d:PostalCode>
<d:Region m:null="true"/>
<d:Country>Germany</d:Country>
<d:CustomerID>ALFKI</d:CustomerID>
<d:City>Berli</d:City>
<d:Fax>030-0076545</d:Fax>
<d:ContactName>Maria Anders</d:ContactName>
<d:ContactTitle>Sales Representative</d:ContactTitle>
</m:properties>
</content>
Every option I have tried yields me a "not implemented exception". I have poked around in the code of the different serializers, and the only one that is fully implemented is the JSON one.
I need this format because some applications working with oData specifically expect the format to be atom, and will not work with JSON (Tableau, specifically)
Thank you,
Louis