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/R_RegistrationSummaries HTTP/1.1
Host: regapi.pumpalarm.com
Content-Type: application/xml
Content-Length: length
<R_RegistrationSummaries xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Registrar.Model.Model.Views">
<AccountId>0</AccountId>
<Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>0</d2p1:long>
</Ids>
</R_RegistrationSummaries>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ArrayOfR_RegistrationSummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Registrar.Model.Model.Views">
<R_RegistrationSummary>
<AccountId>0</AccountId>
<CellDeviceId>String</CellDeviceId>
<CellularDeviceStateId>0</CellularDeviceStateId>
<CreationDateTime>0001-01-01T00:00:00</CreationDateTime>
<DeviceSerialNumber>String</DeviceSerialNumber>
<Id>0</Id>
<NextBillDate>0001-01-01T00:00:00</NextBillDate>
<PaidUntilDate>0001-01-01T00:00:00</PaidUntilDate>
<PhoneNumber>String</PhoneNumber>
<Plan xmlns:d3p1="http://schemas.datacontract.org/2004/07/Registrar.Model.Model.Data">
<d3p1:CurrencyTypeId>0</d3p1:CurrencyTypeId>
<d3p1:Description>String</d3p1:Description>
<d3p1:Id>0</d3p1:Id>
<d3p1:Name>String</d3p1:Name>
<d3p1:PlanBillingstructureId>0</d3p1:PlanBillingstructureId>
<d3p1:PlanStatus>0</d3p1:PlanStatus>
<d3p1:PriceDescription>String</d3p1:PriceDescription>
</Plan>
<ProductName>String</ProductName>
<RegistrationStatus xmlns:d3p1="http://schemas.datacontract.org/2004/07/Registrar.Model.Model.Data">
<d3p1:Description>String</d3p1:Description>
<d3p1:Id>0</d3p1:Id>
</RegistrationStatus>
<SubscriptionId>0</SubscriptionId>
<UnitId>String</UnitId>
</R_RegistrationSummary>
</ArrayOfR_RegistrationSummary>