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 /V2/SamsungOMSReqAvaiStock HTTP/1.1
Host: snr2u.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SamsungOMSReqAvaiStockV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel">
<available_req>
<available_req_header>
<confirm_flag>String</confirm_flag>
<online_store_id>String</online_store_id>
<po_no>String</po_no>
</available_req_header>
<available_req_items>
<available_req_item>
<SamsungOMSReqAvaiStockV2.Available_Req_Item>
<model_code>String</model_code>
<plant>String</plant>
<request_quantity>String</request_quantity>
<storage_location>String</storage_location>
</SamsungOMSReqAvaiStockV2.Available_Req_Item>
</available_req_item>
</available_req_items>
<common_header>
<in_company>String</in_company>
<message_id>String</message_id>
<send_code>String</send_code>
<send_date>String</send_date>
<send_system>String</send_system>
<send_time>String</send_time>
</common_header>
</available_req>
</SamsungOMSReqAvaiStockV2>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SamsungOMSReqAvaiStockV2Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartDynaModWebAPI.ServiceModel">
<IsSuccess>false</IsSuccess>
<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>
<available_res>
<available_res_header>
<reservation_no>String</reservation_no>
<result_code>String</result_code>
<result_message>String</result_message>
</available_res_header>
<available_res_items>
<available_res_item>
<SamsungOMSReqAvaiStockV2Response.Available_Res_Item>
<model_code>String</model_code>
<plant>String</plant>
<request_quantity>String</request_quantity>
<storage_location>String</storage_location>
</SamsungOMSReqAvaiStockV2Response.Available_Res_Item>
</available_res_item>
</available_res_items>
</available_res>
</SamsungOMSReqAvaiStockV2Response>