To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
GET /immagini/{Id} HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ImmagineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Responses">
<DidascaliaCnId xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">0</DidascaliaCnId>
<Id xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">0</Id>
<ImmagineCollegata xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">
<DidascaliaCnId>0</DidascaliaCnId>
<Id>0</Id>
<ImmagineCollegata>
<DidascaliaCnId>0</DidascaliaCnId>
<Id>0</Id>
<ImmagineCollegata>
<DidascaliaCnId>0</DidascaliaCnId>
<Id>0</Id>
<ImmagineCollegata i:nil="true" />
<ImmagineCollegataId>0</ImmagineCollegataId>
<IsCached>false</IsCached>
<Nome>String</Nome>
<RefCount>0</RefCount>
<TipoImmagine>
<AlphaColor>String</AlphaColor>
<Altezza>0</Altezza>
<AltezzaThumb>0</AltezzaThumb>
<Id>0</Id>
<IsAlphaChannel>false</IsAlphaChannel>
<IsKeyColor>false</IsKeyColor>
<KeyColor>String</KeyColor>
<Larghezza>0</Larghezza>
<LarghezzaThumb>0</LarghezzaThumb>
<Nome>String</Nome>
<Posizione>0</Posizione>
</TipoImmagine>
<TipoImmagineId>0</TipoImmagineId>
<Url>String</Url>
</ImmagineCollegata>
<ImmagineCollegataId>0</ImmagineCollegataId>
<IsCached>false</IsCached>
<Nome>String</Nome>
<RefCount>0</RefCount>
<TipoImmagine>
<AlphaColor>String</AlphaColor>
<Altezza>0</Altezza>
<AltezzaThumb>0</AltezzaThumb>
<Id>0</Id>
<IsAlphaChannel>false</IsAlphaChannel>
<IsKeyColor>false</IsKeyColor>
<KeyColor>String</KeyColor>
<Larghezza>0</Larghezza>
<LarghezzaThumb>0</LarghezzaThumb>
<Nome>String</Nome>
<Posizione>0</Posizione>
</TipoImmagine>
<TipoImmagineId>0</TipoImmagineId>
<Url>String</Url>
</ImmagineCollegata>
<ImmagineCollegataId>0</ImmagineCollegataId>
<IsCached>false</IsCached>
<Nome>String</Nome>
<RefCount>0</RefCount>
<TipoImmagine>
<AlphaColor>String</AlphaColor>
<Altezza>0</Altezza>
<AltezzaThumb>0</AltezzaThumb>
<Id>0</Id>
<IsAlphaChannel>false</IsAlphaChannel>
<IsKeyColor>false</IsKeyColor>
<KeyColor>String</KeyColor>
<Larghezza>0</Larghezza>
<LarghezzaThumb>0</LarghezzaThumb>
<Nome>String</Nome>
<Posizione>0</Posizione>
</TipoImmagine>
<TipoImmagineId>0</TipoImmagineId>
<Url>String</Url>
</ImmagineCollegata>
<ImmagineCollegataId xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">0</ImmagineCollegataId>
<IsCached xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">false</IsCached>
<Nome xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">String</Nome>
<RefCount xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">0</RefCount>
<TipoImmagine xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">
<AlphaColor>String</AlphaColor>
<Altezza>0</Altezza>
<AltezzaThumb>0</AltezzaThumb>
<Id>0</Id>
<IsAlphaChannel>false</IsAlphaChannel>
<IsKeyColor>false</IsKeyColor>
<KeyColor>String</KeyColor>
<Larghezza>0</Larghezza>
<LarghezzaThumb>0</LarghezzaThumb>
<Nome>String</Nome>
<Posizione>0</Posizione>
</TipoImmagine>
<TipoImmagineId xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">0</TipoImmagineId>
<Url xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">String</Url>
<Id>0</Id>
<ImageContentType>String</ImageContentType>
<ThumbnailContentType>String</ThumbnailContentType>
</ImmagineResponse>