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 /xml/reply/OrderInfoListRequest HTTP/1.1
Host: bookinglogin.hart-worldwide.com
Content-Type: application/xml
Content-Length: length
<OrderInfoListRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinJo.Framing.DTO">
<AddRouteIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</AddRouteIds>
<BookingNumber>String</BookingNumber>
<OrderNumber>String</OrderNumber>
<RouteIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</RouteIDs>
<Status>0</Status>
</OrderInfoListRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OrderModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinJo.Framing.DTO">
<ErrorCode>0</ErrorCode>
<ErrorMsg>String</ErrorMsg>
<OrderInfo>
<OrderInfo>
<Address>String</Address>
<Area>0</Area>
<BkInfPickupId>String</BkInfPickupId>
<BookingNumber>String</BookingNumber>
<BoxCube>0</BoxCube>
<BoxNmber>0</BoxNmber>
<BoxWeight>0</BoxWeight>
<ChannelName>String</ChannelName>
<City>0</City>
<CorporateName>String</CorporateName>
<CreateBy>String</CreateBy>
<CreateDT>0001-01-01T00:00:00</CreateDT>
<GoodCargoTime>0001-01-01T00:00:00</GoodCargoTime>
<ID>0</ID>
<Latitude>0</Latitude>
<LinkMan>String</LinkMan>
<Longitude>0</Longitude>
<OrderNumber>String</OrderNumber>
<PhoneNumber>String</PhoneNumber>
<Province>0</Province>
<Remarks>String</Remarks>
<Status>0</Status>
<TakeAddress>String</TakeAddress>
</OrderInfo>
</OrderInfo>
</OrderModelResponse>