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 /clone HTTP/1.1
Host: n3tapi.palmettovdc.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<Clone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/N3TAPI.Services">
<CustomerId>String</CustomerId>
<DataCenterLocation>String</DataCenterLocation>
<JobId>String</JobId>
<OrgName>String</OrgName>
<StartVM>0</StartVM>
<UserId>String</UserId>
<datastore>String</datastore>
<diskpool>String</diskpool>
<esxhost>String</esxhost>
<host>String</host>
<hypervisor>String</hypervisor>
<image>String</image>
<isRemote>false</isRemote>
<label>String</label>
<mgmtserver>String</mgmtserver>
<nowait>false</nowait>
<parts>String</parts>
<path>String</path>
<poweronvm>false</poweronvm>
<restoreoption>String</restoreoption>
<script>String</script>
<sessionId>String</sessionId>
<specifyNewHost>false</specifyNewHost>
<vcenter>String</vcenter>
<vmname>String</vmname>
</Clone>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CloneResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/N3TAPI.Services">
<content>String</content>
<errorcode>0</errorcode>
<errormessage>String</errormessage>
<jobid>String</jobid>
<status>0</status>
</CloneResponse>