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 /Distribution/Van/Loads HTTP/1.1
Host: 10.10.0.107
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<VanEmptyOrLoad xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Distribution">
<BranchFromId>0</BranchFromId>
<BranchToId>0</BranchToId>
<DDate>0001-01-01T00:00:00</DDate>
<OperId1>String</OperId1>
<OperId2>String</OperId2>
<VanLoadRequest>
<LoadRequestForVan>
<ProdPPId>String</ProdPPId>
<Quantity>0</Quantity>
</LoadRequestForVan>
</VanLoadRequest>
<MobileUserId>0</MobileUserId>
</VanEmptyOrLoad>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<VanEmptyOrLoadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Distribution">
<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>
<LoadDocId>String</LoadDocId>
<UnLoadDocId>String</UnLoadDocId>
<WaybillId>0</WaybillId>
<WaybillResp xmlns:d2p1="http://schemas.datacontract.org/2004/07/Apex.Services.RSProxy">
<d2p1:ResponseStatus xmlns:d3p1="http://schemas.servicestack.net/types">
<d3p1:ErrorCode>String</d3p1:ErrorCode>
<d3p1:Message>String</d3p1:Message>
<d3p1:StackTrace>String</d3p1:StackTrace>
<d3p1:Errors>
<d3p1:ResponseError>
<d3p1:ErrorCode>String</d3p1:ErrorCode>
<d3p1:FieldName>String</d3p1:FieldName>
<d3p1:Message>String</d3p1:Message>
<d3p1:Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value>String</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</d3p1:Meta>
</d3p1:ResponseError>
</d3p1:Errors>
<d3p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</d3p1:Meta>
</d2p1:ResponseStatus>
<d2p1:Waybill>
<d2p1:ID>0</d2p1:ID>
<d2p1:Docs_id>String</d2p1:Docs_id>
<d2p1:Num>String</d2p1:Num>
<d2p1:WbType>0</d2p1:WbType>
<d2p1:Status>0</d2p1:Status>
<d2p1:CreateDate>0001-01-01T00:00:00</d2p1:CreateDate>
<d2p1:BeginDate>0001-01-01T00:00:00</d2p1:BeginDate>
<d2p1:ActivateDate>0001-01-01T00:00:00</d2p1:ActivateDate>
<d2p1:DeliveryDate>0001-01-01T00:00:00</d2p1:DeliveryDate>
<d2p1:CloseDate>0001-01-01T00:00:00</d2p1:CloseDate>
<d2p1:BuyerSN>String</d2p1:BuyerSN>
<d2p1:CheckBuyer>0</d2p1:CheckBuyer>
<d2p1:BuyerName>String</d2p1:BuyerName>
<d2p1:SellerSN>String</d2p1:SellerSN>
<d2p1:SellerName>String</d2p1:SellerName>
<d2p1:StartAddress>String</d2p1:StartAddress>
<d2p1:EndAddress>String</d2p1:EndAddress>
<d2p1:DriverSN>String</d2p1:DriverSN>
<d2p1:CheckDriverSN>0</d2p1:CheckDriverSN>
<d2p1:DriverName>String</d2p1:DriverName>
<d2p1:TransportCost>0</d2p1:TransportCost>
<d2p1:ReceptionInfo>String</d2p1:ReceptionInfo>
<d2p1:ReceiverInfo>String</d2p1:ReceiverInfo>
<d2p1:ParentID>0</d2p1:ParentID>
<d2p1:FullAmount>0</d2p1:FullAmount>
<d2p1:CarNumber>String</d2p1:CarNumber>
<d2p1:WaybillNum>String</d2p1:WaybillNum>
<d2p1:UserID>0</d2p1:UserID>
<d2p1:SellerID>0</d2p1:SellerID>
<d2p1:TransCostPayer>0</d2p1:TransCostPayer>
<d2p1:TransportID>0</d2p1:TransportID>
<d2p1:TransportText>String</d2p1:TransportText>
<d2p1:Comment>String</d2p1:Comment>
<d2p1:IsConfirmed>false</d2p1:IsConfirmed>
<d2p1:IsCorrected>false</d2p1:IsCorrected>
<d2p1:ConfirmationDate>0001-01-01T00:00:00</d2p1:ConfirmationDate>
<d2p1:Goods>
<d2p1:MOFWayBillDet>
<d2p1:ID>0</d2p1:ID>
<d2p1:BCode>String</d2p1:BCode>
<d2p1:Name>String</d2p1:Name>
<d2p1:Unit>String</d2p1:Unit>
<d2p1:SCount>0</d2p1:SCount>
<d2p1:Price>0</d2p1:Price>
<d2p1:Amount>0</d2p1:Amount>
<d2p1:UnitID>0</d2p1:UnitID>
<d2p1:AkcizID>0</d2p1:AkcizID>
<d2p1:VatType>0</d2p1:VatType>
<d2p1:Status>0</d2p1:Status>
</d2p1:MOFWayBillDet>
</d2p1:Goods>
<d2p1:SubWayBills>
<d2p1:MOFSubWayBill>
<d2p1:ID>0</d2p1:ID>
<d2p1:WayBillNum>String</d2p1:WayBillNum>
</d2p1:MOFSubWayBill>
</d2p1:SubWayBills>
<d2p1:TransporterSN>String</d2p1:TransporterSN>
<d2p1:TransporterName>String</d2p1:TransporterName>
<d2p1:FullAmountText>String</d2p1:FullAmountText>
<d2p1:BuyerUserId>0</d2p1:BuyerUserId>
<d2p1:ReceivedDocsID>String</d2p1:ReceivedDocsID>
<d2p1:fxIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</d2p1:fxIds>
<d2p1:InvoiceId>0</d2p1:InvoiceId>
</d2p1:Waybill>
<d2p1:Error>0</d2p1:Error>
<d2p1:ErrorMessage>String</d2p1:ErrorMessage>
</WaybillResp>
</VanEmptyOrLoadResponse>