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 /Submit-Deal-Recap HTTP/1.1
Host: internal.thebunkerbridge.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SubmitDealRecap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Private.Api.DTO">
<AdditionalCosts>String</AdditionalCosts>
<Agent>String</Agent>
<BuyerAccountName>String</BuyerAccountName>
<BuyerSellerAccountId>0</BuyerSellerAccountId>
<ChatGuid>00000000-0000-0000-0000-000000000000</ChatGuid>
<CreditTermDays>0</CreditTermDays>
<DateFrom>0001-01-01T00:00:00</DateFrom>
<DateTo>0001-01-01T00:00:00</DateTo>
<DealRecapEnquiryGrades xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<d2p1:DealRecapEnquiryGradesViewModel>
<d2p1:CurrencyId>0</d2p1:CurrencyId>
<d2p1:Deleted>false</d2p1:Deleted>
<d2p1:GradeId>0</d2p1:GradeId>
<d2p1:Id>0</d2p1:Id>
<d2p1:ProductId>0</d2p1:ProductId>
<d2p1:SpecificationComments>String</d2p1:SpecificationComments>
<d2p1:UnitId>0</d2p1:UnitId>
<d2p1:UnitPrice>0</d2p1:UnitPrice>
<d2p1:VersionId>0</d2p1:VersionId>
<d2p1:VolumeFrom>0</d2p1:VolumeFrom>
<d2p1:VolumeTo>0</d2p1:VolumeTo>
<d2p1:VolumeUnitId>0</d2p1:VolumeUnitId>
</d2p1:DealRecapEnquiryGradesViewModel>
</DealRecapEnquiryGrades>
<DeliveryMethodId>0</DeliveryMethodId>
<DocumentTitle>String</DocumentTitle>
<EnquiryGuid>00000000-0000-0000-0000-000000000000</EnquiryGuid>
<EnquiryId>0</EnquiryId>
<FromEntityContactId>0</FromEntityContactId>
<IMONumber>0</IMONumber>
<PortId>0</PortId>
<RecapCanBeSent>false</RecapCanBeSent>
<RecapComments>String</RecapComments>
<RequestedTermsType>String</RequestedTermsType>
<VesselId>0</VesselId>
<VesselName>String</VesselName>
</SubmitDealRecap>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SubmitDealRecapReturnViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<ChattingWithEntityContactId>0</ChattingWithEntityContactId>
<DocumentTitle>String</DocumentTitle>
<RecapGuid>String</RecapGuid>
<RecapId>0</RecapId>
</SubmitDealRecapReturnViewModel>