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 /Ams/{ClientID}/Product/{id}/MemberID/{MemberID} HTTP/1.1
Host: ws.yourmembership.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProductResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
<AutoPromoCode i:nil="true" />
<GLCode>String</GLCode>
<QBClass>String</QBClass>
<amount>0</amount>
<autoPromoCodeAmount>0</autoPromoCodeAmount>
<autoPromoCodeTitle>String</autoPromoCodeTitle>
<customDescription>String</customDescription>
<description>String</description>
<id>0</id>
<isDuesRule>false</isDuesRule>
<isModifier>false</isModifier>
<isProRated>false</isProRated>
<itemTypeId>String</itemTypeId>
<quantity>0</quantity>
<salesDiscount>0</salesDiscount>
<shippingCost>0</shippingCost>
<sku>String</sku>
<taxGLCode>String</taxGLCode>
<taxQBClass>String</taxQBClass>
<taxRate>0</taxRate>
<taxable>false</taxable>
<AutoPromoCode>
<Discount>0</Discount>
<Id>0</Id>
<IsPercent>false</IsPercent>
<Title>String</Title>
</AutoPromoCode>
<BuyFromStore>false</BuyFromStore>
<ColorOptions>String</ColorOptions>
<CustomFieldName>String</CustomFieldName>
<CustomFieldOptions>String</CustomFieldOptions>
<Freestone>
<CourseTypeId>0</CourseTypeId>
<IsFreestoneProduct>false</IsFreestoneProduct>
<ProductTypeId>0</ProductTypeId>
</Freestone>
<IsAutoPromoCode>false</IsAutoPromoCode>
<IsFeatured>false</IsFeatured>
<ListInStore>false</ListInStore>
<PrimaryCategory>String</PrimaryCategory>
<ProductActive>0</ProductActive>
<ProductDescription>String</ProductDescription>
<ProductGroup>String</ProductGroup>
<RequireResponse>false</RequireResponse>
<SizeType>String</SizeType>
<SpecialInstructions>String</SpecialInstructions>
<TagLine>String</TagLine>
<hasSpecialTaxRate>false</hasSpecialTaxRate>
<weight>0</weight>
</ProductResponse>