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 /WorkOrders/{WorkOrderID}/Outputs/{OutputID}/LineDetails HTTP/1.1
Host: api.jiwa.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<WorkOrderOutputLineDetailPOSTRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel">
<_x003C_BinLocation_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">
<d2p1:_x003C_BinLocationID_x003E_k__BackingField>String</d2p1:_x003C_BinLocationID_x003E_k__BackingField>
<d2p1:_x003C_CustomFieldValues_x003E_k__BackingField xmlns:d3p1="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.CustomFields">
<d3p1:CustomFieldValue>
<d3p1:_x003C_Contents_x003E_k__BackingField>String</d3p1:_x003C_Contents_x003E_k__BackingField>
<d3p1:_x003C_PluginID_x003E_k__BackingField>String</d3p1:_x003C_PluginID_x003E_k__BackingField>
<d3p1:_x003C_PluginName_x003E_k__BackingField>String</d3p1:_x003C_PluginName_x003E_k__BackingField>
<d3p1:_x003C_SettingID_x003E_k__BackingField>String</d3p1:_x003C_SettingID_x003E_k__BackingField>
<d3p1:_x003C_SettingName_x003E_k__BackingField>String</d3p1:_x003C_SettingName_x003E_k__BackingField>
</d3p1:CustomFieldValue>
</d2p1:_x003C_CustomFieldValues_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>String</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IsDefault_x003E_k__BackingField>false</d2p1:_x003C_IsDefault_x003E_k__BackingField>
<d2p1:_x003C_ItemNo_x003E_k__BackingField>0</d2p1:_x003C_ItemNo_x003E_k__BackingField>
<d2p1:_x003C_LogicalWarehouseDescription_x003E_k__BackingField>String</d2p1:_x003C_LogicalWarehouseDescription_x003E_k__BackingField>
<d2p1:_x003C_LogicalWarehouseID_x003E_k__BackingField>String</d2p1:_x003C_LogicalWarehouseID_x003E_k__BackingField>
<d2p1:_x003C_PhysicalWarehouseDescription_x003E_k__BackingField>String</d2p1:_x003C_PhysicalWarehouseDescription_x003E_k__BackingField>
<d2p1:_x003C_PhysicalWarehouseID_x003E_k__BackingField>String</d2p1:_x003C_PhysicalWarehouseID_x003E_k__BackingField>
<d2p1:_x003C_ShortName_x003E_k__BackingField>String</d2p1:_x003C_ShortName_x003E_k__BackingField>
</_x003C_BinLocation_x003E_k__BackingField>
<_x003C_Cost_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0</_x003C_Cost_x003E_k__BackingField>
<_x003C_DateIn_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0001-01-01T00:00:00</_x003C_DateIn_x003E_k__BackingField>
<_x003C_ExpiryDate_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0001-01-01T00:00:00</_x003C_ExpiryDate_x003E_k__BackingField>
<_x003C_HistoryText_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">String</_x003C_HistoryText_x003E_k__BackingField>
<_x003C_IN_LogicalID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">String</_x003C_IN_LogicalID_x003E_k__BackingField>
<_x003C_IN_SOH_LinkID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">String</_x003C_IN_SOH_LinkID_x003E_k__BackingField>
<_x003C_LineDetailID_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH" />
<_x003C_QuantityAllocated_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0</_x003C_QuantityAllocated_x003E_k__BackingField>
<_x003C_QuantityIn_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0</_x003C_QuantityIn_x003E_k__BackingField>
<_x003C_QuantityLeft_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0</_x003C_QuantityLeft_x003E_k__BackingField>
<_x003C_Quantity_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0</_x003C_Quantity_x003E_k__BackingField>
<_x003C_Ref_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">String</_x003C_Ref_x003E_k__BackingField>
<_x003C_SerialNo_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">String</_x003C_SerialNo_x003E_k__BackingField>
<_x003C_SourceID_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">String</_x003C_SourceID_x003E_k__BackingField>
<_x003C_SpecialPrice_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">0</_x003C_SpecialPrice_x003E_k__BackingField>
<_x003C_LineDetailID_x003E_k__BackingField>String</_x003C_LineDetailID_x003E_k__BackingField>
<_x003C_OutputID_x003E_k__BackingField>String</_x003C_OutputID_x003E_k__BackingField>
<_x003C_WorkOrderID_x003E_k__BackingField>String</_x003C_WorkOrderID_x003E_k__BackingField>
</WorkOrderOutputLineDetailPOSTRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<InventorySOHLineDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory.SOH">
<_x003C_BinLocation_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.Inventory">
<d2p1:_x003C_BinLocationID_x003E_k__BackingField>String</d2p1:_x003C_BinLocationID_x003E_k__BackingField>
<d2p1:_x003C_CustomFieldValues_x003E_k__BackingField xmlns:d3p1="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel.CustomFields">
<d3p1:CustomFieldValue>
<d3p1:_x003C_Contents_x003E_k__BackingField>String</d3p1:_x003C_Contents_x003E_k__BackingField>
<d3p1:_x003C_PluginID_x003E_k__BackingField>String</d3p1:_x003C_PluginID_x003E_k__BackingField>
<d3p1:_x003C_PluginName_x003E_k__BackingField>String</d3p1:_x003C_PluginName_x003E_k__BackingField>
<d3p1:_x003C_SettingID_x003E_k__BackingField>String</d3p1:_x003C_SettingID_x003E_k__BackingField>
<d3p1:_x003C_SettingName_x003E_k__BackingField>String</d3p1:_x003C_SettingName_x003E_k__BackingField>
</d3p1:CustomFieldValue>
</d2p1:_x003C_CustomFieldValues_x003E_k__BackingField>
<d2p1:_x003C_Description_x003E_k__BackingField>String</d2p1:_x003C_Description_x003E_k__BackingField>
<d2p1:_x003C_IsDefault_x003E_k__BackingField>false</d2p1:_x003C_IsDefault_x003E_k__BackingField>
<d2p1:_x003C_ItemNo_x003E_k__BackingField>0</d2p1:_x003C_ItemNo_x003E_k__BackingField>
<d2p1:_x003C_LogicalWarehouseDescription_x003E_k__BackingField>String</d2p1:_x003C_LogicalWarehouseDescription_x003E_k__BackingField>
<d2p1:_x003C_LogicalWarehouseID_x003E_k__BackingField>String</d2p1:_x003C_LogicalWarehouseID_x003E_k__BackingField>
<d2p1:_x003C_PhysicalWarehouseDescription_x003E_k__BackingField>String</d2p1:_x003C_PhysicalWarehouseDescription_x003E_k__BackingField>
<d2p1:_x003C_PhysicalWarehouseID_x003E_k__BackingField>String</d2p1:_x003C_PhysicalWarehouseID_x003E_k__BackingField>
<d2p1:_x003C_ShortName_x003E_k__BackingField>String</d2p1:_x003C_ShortName_x003E_k__BackingField>
</_x003C_BinLocation_x003E_k__BackingField>
<_x003C_Cost_x003E_k__BackingField>0</_x003C_Cost_x003E_k__BackingField>
<_x003C_DateIn_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_DateIn_x003E_k__BackingField>
<_x003C_ExpiryDate_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_ExpiryDate_x003E_k__BackingField>
<_x003C_HistoryText_x003E_k__BackingField>String</_x003C_HistoryText_x003E_k__BackingField>
<_x003C_IN_LogicalID_x003E_k__BackingField>String</_x003C_IN_LogicalID_x003E_k__BackingField>
<_x003C_IN_SOH_LinkID_x003E_k__BackingField>String</_x003C_IN_SOH_LinkID_x003E_k__BackingField>
<_x003C_LineDetailID_x003E_k__BackingField>String</_x003C_LineDetailID_x003E_k__BackingField>
<_x003C_QuantityAllocated_x003E_k__BackingField>0</_x003C_QuantityAllocated_x003E_k__BackingField>
<_x003C_QuantityIn_x003E_k__BackingField>0</_x003C_QuantityIn_x003E_k__BackingField>
<_x003C_QuantityLeft_x003E_k__BackingField>0</_x003C_QuantityLeft_x003E_k__BackingField>
<_x003C_Quantity_x003E_k__BackingField>0</_x003C_Quantity_x003E_k__BackingField>
<_x003C_Ref_x003E_k__BackingField>String</_x003C_Ref_x003E_k__BackingField>
<_x003C_SerialNo_x003E_k__BackingField>String</_x003C_SerialNo_x003E_k__BackingField>
<_x003C_SourceID_x003E_k__BackingField>String</_x003C_SourceID_x003E_k__BackingField>
<_x003C_SpecialPrice_x003E_k__BackingField>0</_x003C_SpecialPrice_x003E_k__BackingField>
</InventorySOHLineDetail>