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.
POST /contenuti/{ContenutoId}/traduzioni HTTP/1.1
Host: gemma.api.kerberos.energy
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateContenutoTraduzioni xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">
<ContenutoId>0</ContenutoId>
<Traduzioni>
<TraduzioneEntry>
<CodiceLingua>String</CodiceLingua>
<IsVisibile>false</IsVisibile>
<Testo>String</Testo>
<Tipo>String</Tipo>
</TraduzioneEntry>
</Traduzioni>
</UpdateContenutoTraduzioni>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfContenuto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gemma.WebApi.ServiceModel.Types">
<Contenuto>
<Chiave>String</Chiave>
<ContenutoId>0</ContenutoId>
<CreatedUtc>0001-01-01T00:00:00</CreatedUtc>
<IsVisibile>false</IsVisibile>
<Lingua>
<CodiceLingua>String</CodiceLingua>
<Descrizione>String</Descrizione>
<DescrizioneCnId>0</DescrizioneCnId>
<Id>0</Id>
<IsVisibile>false</IsVisibile>
</Lingua>
<LinguaId>0</LinguaId>
<ModifiedUtc>0001-01-01T00:00:00</ModifiedUtc>
<Testo>String</Testo>
<Tipo>Unknown</Tipo>
<TipoId>0</TipoId>
</Contenuto>
</ArrayOfContenuto>