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.
GET /drugs/packaged/{Id} HTTP/1.1
Host: drugapi.alisonline.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PackagedDrugDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Boca.DrugApi.ServiceModel.Types">
<AdverseEffects>
<AdverseEffectDto>
<EffectTypes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</EffectTypes>
<IncidenceLevel>String</IncidenceLevel>
<Name>String</Name>
<Onset>String</Onset>
<Rank>0</Rank>
<SeverityLevel>String</SeverityLevel>
</AdverseEffectDto>
</AdverseEffects>
<ControlledSubstanceSchedule>
<Description>String</Description>
<Id>String</Id>
</ControlledSubstanceSchedule>
<DoseForm>String</DoseForm>
<DrugId>String</DrugId>
<EndDate>0001-01-01T00:00:00</EndDate>
<GenericName>String</GenericName>
<Gpi>String</Gpi>
<Id>String</Id>
<ImageId>String</ImageId>
<IsGeneric>false</IsGeneric>
<Labeler>
<Id>String</Id>
<Name>String</Name>
</Labeler>
<Name>String</Name>
<Ndc>String</Ndc>
<Packaging>String</Packaging>
<Route>String</Route>
<Upc>String</Upc>
</PackagedDrugDto>