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 /service/PerformCCAction HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PerformCCAction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PaymentProcessing">
<Action>String</Action>
<Amount>0</Amount>
<CCAddress1>String</CCAddress1>
<CCAddress2>String</CCAddress2>
<CCCity>String</CCCity>
<CCExpirationDate>String</CCExpirationDate>
<CCName>String</CCName>
<CCNumber>String</CCNumber>
<CCState>String</CCState>
<CCZipcode>String</CCZipcode>
<CVV>String</CVV>
<CompanyName>String</CompanyName>
<CustomerID>String</CustomerID>
<Demo>false</Demo>
<Email>String</Email>
<InvoiceNo>String</InvoiceNo>
<Last4>String</Last4>
<OrderNumber>String</OrderNumber>
<PONumber>String</PONumber>
<Phone>String</Phone>
<PreviousTransactionID>String</PreviousTransactionID>
<ReferenceNumber>String</ReferenceNumber>
<Ticket>String</Ticket>
<Token>String</Token>
</PerformCCAction>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PaymentRequestResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PaymentProcessing">
<CompleteXMLResponse>String</CompleteXMLResponse>
<ErrorMSG>String</ErrorMSG>
<ExtraData xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</ExtraData>
<Success>false</Success>
<Token>String</Token>
<TransactionNo>String</TransactionNo>
</PaymentRequestResponse>