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/SaveRsInvoice HTTP/1.1
Host: axfuel.apex.ge
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SaveRsInvoice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/axFuelService.ServiceModel">
<specinvoice>
<invois_id>0</invois_id>
<p_F_SERIES>String</p_F_SERIES>
<p_OPERATION_DT>0001-01-01T00:00:00</p_OPERATION_DT>
<p_BUYER_UN_ID>0</p_BUYER_UN_ID>
<p_SSD_N>String</p_SSD_N>
<p_SSAF_N>String</p_SSAF_N>
<p_CALC_DATE>0001-01-01T00:00:00</p_CALC_DATE>
<p_K_SSAF_N>String</p_K_SSAF_N>
<p_TR_ST_DATE>0001-01-01T00:00:00</p_TR_ST_DATE>
<p_OIL_ST_ADDRESS>String</p_OIL_ST_ADDRESS>
<p_OIL_ST_N>String</p_OIL_ST_N>
<p_OIL_FN_ADDRESS>String</p_OIL_FN_ADDRESS>
<p_OIL_FN_N>String</p_OIL_FN_N>
<p_TRANSPORT_TYPE>String</p_TRANSPORT_TYPE>
<p_TRANSPORT_MARK>String</p_TRANSPORT_MARK>
<p_DRIVER_INFO>String</p_DRIVER_INFO>
<p_CARRIER_INFO>String</p_CARRIER_INFO>
<p_CARRIE_S_NO>String</p_CARRIE_S_NO>
<p_B_S_USER_ID>0</p_B_S_USER_ID>
<p_SSD_DATE>0001-01-01T00:00:00</p_SSD_DATE>
<p_SSAF_DATE>0001-01-01T00:00:00</p_SSAF_DATE>
<p_PAY_TYPE>0</p_PAY_TYPE>
<p_SELLER_PHONE>String</p_SELLER_PHONE>
<p_BUYER_PHONE>String</p_BUYER_PHONE>
<p_driver_no>String</p_driver_no>
<p_SSAF_ALT_NUMBER>String</p_SSAF_ALT_NUMBER>
<p_SSAF_ALT_TYPE>String</p_SSAF_ALT_TYPE>
<p_SSD_ALT_NUMBER>String</p_SSD_ALT_NUMBER>
<p_SSD_ALT_TYPE>String</p_SSD_ALT_TYPE>
<p_SSAF_ALT_STATUS>0</p_SSAF_ALT_STATUS>
<p_SSD_ALT_STATUS>0</p_SSD_ALT_STATUS>
<p_driver_is_geo>0</p_driver_is_geo>
</specinvoice>
</SaveRsInvoice>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SaveRsInvoiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/axFuelService.ServiceModel">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<result>0</result>
</SaveRsInvoiceResponse>