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.
GET /Deal-Recap HTTP/1.1
Host: internal.thebunkerbridge.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetRecapDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<Accepted>false</Accepted>
<AdditionalCosts>String</AdditionalCosts>
<AgentDetails>String</AgentDetails>
<BuyerAccountName>String</BuyerAccountName>
<CompanyLogo>AA==</CompanyLogo>
<ConfirmationOnly>false</ConfirmationOnly>
<ContactGuid>00000000-0000-0000-0000-000000000000</ContactGuid>
<CountryFlag>AA==</CountryFlag>
<CountryName>String</CountryName>
<DateFrom>0001-01-01T00:00:00</DateFrom>
<DateTo>0001-01-01T00:00:00</DateTo>
<DeliveryMethod>String</DeliveryMethod>
<DocumentTitle>String</DocumentTitle>
<EnquiryGuid>00000000-0000-0000-0000-000000000000</EnquiryGuid>
<EnquiryId>0</EnquiryId>
<EntityName>String</EntityName>
<FromContactName>String</FromContactName>
<FromEntityContactId>0</FromEntityContactId>
<GeneralComments>String</GeneralComments>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<IMONumber>0</IMONumber>
<ImageGuid>00000000-0000-0000-0000-000000000000</ImageGuid>
<PortCode>String</PortCode>
<PortName>String</PortName>
<RecapComments>String</RecapComments>
<RecapGrades>String</RecapGrades>
<RecapTerms>String</RecapTerms>
<Rejected>false</Rejected>
<TermsAndConditions>String</TermsAndConditions>
<ToEntityContactId>0</ToEntityContactId>
<VesselId>0</VesselId>
<VesselName>String</VesselName>
</GetRecapDetailsViewModel>