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/OrderListRequest HTTP/1.1
Host: bookinglogin.hart-worldwide.com
Content-Type: application/xml
Content-Length: length
<OrderListRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WinJo.Framing.DTO">
<PageIndex>0</PageIndex>
<PageSize>0</PageSize>
<BookingNumber>String</BookingNumber>
<OrderNumber>String</OrderNumber>
<Status>0</Status>
</OrderListRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OrderListResponse 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>
<PageIndex>0</PageIndex>
<PageSize>0</PageSize>
<RowCount>0</RowCount>
<OrderModels>
<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>
</OrderModels>
</OrderListResponse>