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.
PUT /App/{UserId}/Order HTTP/1.1
Host: messdienstservice-stadtwerke-peine-servamw.eras-online.de
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateOrder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App.Update">
<UserId xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App">00000000-0000-0000-0000-000000000000</UserId>
<Auftrag xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Common">
<d2p1:AbrechnungseinheitGuid>00000000-0000-0000-0000-000000000000</d2p1:AbrechnungseinheitGuid>
<d2p1:Anmerkung>String</d2p1:Anmerkung>
<d2p1:AuftragNummer>String</d2p1:AuftragNummer>
<d2p1:AuftragZustand>
<d2p1:AbgeschlossenDatum>0001-01-01T00:00:00</d2p1:AbgeschlossenDatum>
<d2p1:AuftragArten xmlns:d4p1="http://schemas.datacontract.org/2004/07/System" i:nil="true" />
<d2p1:Bearbeitungsstatus>InProgress</d2p1:Bearbeitungsstatus>
<d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
</d2p1:AuftragZustand>
<d2p1:Auftraggeber>
<d2p1:BetrieblichePosition>String</d2p1:BetrieblichePosition>
<d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
<d2p1:Person>
<d2p1:Anmerkung>String</d2p1:Anmerkung>
<d2p1:Anrede>String</d2p1:Anrede>
<d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
<d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
<d2p1:Nachname1>String</d2p1:Nachname1>
<d2p1:Nachname2>String</d2p1:Nachname2>
<d2p1:Nachname3>String</d2p1:Nachname3>
<d2p1:PersonKommunikationen i:nil="true" />
<d2p1:Titel>String</d2p1:Titel>
<d2p1:Vorname1>String</d2p1:Vorname1>
<d2p1:Vorname2>String</d2p1:Vorname2>
</d2p1:Person>
</d2p1:Auftraggeber>
<d2p1:AuftragsPositionen i:nil="true" />
<d2p1:Bezeichnung>String</d2p1:Bezeichnung>
<d2p1:Erstellungsdatum>0001-01-01T00:00:00</d2p1:Erstellungsdatum>
<d2p1:GeraeteZustaende i:nil="true" />
<d2p1:Guid>00000000-0000-0000-0000-000000000000</d2p1:Guid>
<d2p1:LastModified>0001-01-01T00:00:00</d2p1:LastModified>
<d2p1:NutzeinheitZustaende i:nil="true" />
<d2p1:Termine i:nil="true" />
<d2p1:UnterschriftBenoetigt>false</d2p1:UnterschriftBenoetigt>
<d2p1:Unterschriften i:nil="true" />
</Auftrag>
</UpdateOrder>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UpdateOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eras2Amw.Service.Server.ServiceModel.Eras2App.Update">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</UpdateOrderResponse>