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/post_pm_maintenance_schedule2 HTTP/1.1
Host: sdk.lovettcommercial.com
Content-Type: application/xml
Content-Length: length
<post_pm_maintenance_schedule2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TenantSDK.post.Request">
<email>String</email>
<list>
<schedule2_checklist>
<check_status>String</check_status>
<comment>
<idnumber>String</idnumber>
<notes>String</notes>
<photos>
<schedule2_checklistCommentPhoto>
<deleteyn>String</deleteyn>
<idnumber>String</idnumber>
<sort>String</sort>
<xphoto>String</xphoto>
<xtag>String</xtag>
<xthumbnail>String</xthumbnail>
</schedule2_checklistCommentPhoto>
</photos>
</comment>
<description>String</description>
<idnumber>String</idnumber>
<item>String</item>
</schedule2_checklist>
</list>
<token>String</token>
<tokensecret>String</tokensecret>
</post_pm_maintenance_schedule2>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<post_pm_maintenance_schedule2Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TenantSDK.post.Request">
<message>String</message>
<result>0</result>
</post_pm_maintenance_schedule2Response>