You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Ramesh Reddy <ra...@redhat.com> on 2015/08/19 22:39:54 UTC

Re: Xml Format response

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
>