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 /Ymc/{ClientID}/Member/{MemberID}/JobAlerts HTTP/1.1
Host: ws.yourmembership.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<JobAlerts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
<BypassCache xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">false</BypassCache>
<ClientID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</ClientID>
<Device xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">Desktop</Device>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<MemberID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</MemberID>
<Active>false</Active>
<Filter xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringArrayOfSelectionTQsNWqW7>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<Selection>
<Id>0</Id>
<Text>String</Text>
</Selection>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfSelectionTQsNWqW7>
</Filter>
<Frequency>0</Frequency>
<JobAlertId>0</JobAlertId>
<Name>String</Name>
<expires_in>
<unit>d</unit>
<value>0</value>
</expires_in>
<rows>0</rows>
<sort>String</sort>
<start>0</start>
</JobAlerts>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<JobAlertsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
<BypassCache xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">false</BypassCache>
<ClientID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</ClientID>
<Device xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">Desktop</Device>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<MemberID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</MemberID>
<Active>false</Active>
<Filter xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringArrayOfSelectionTQsNWqW7>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<Selection>
<Id>0</Id>
<Text>String</Text>
</Selection>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfSelectionTQsNWqW7>
</Filter>
<Frequency>0</Frequency>
<JobAlertId>0</JobAlertId>
<Name>String</Name>
<expires_in>
<unit>d</unit>
<value>0</value>
</expires_in>
<rows>0</rows>
<sort>String</sort>
<start>0</start>
<response>
<JobAlertsApiResponse.Data>
<Active>false</Active>
<expires_in>
<unit>d</unit>
<value>0</value>
</expires_in>
<filters>
<JobAlertsApiResponse.Data.Questions>
<answers>
<JobAlertsApiResponse.Data.Answers>
<id>0</id>
<text>String</text>
</JobAlertsApiResponse.Data.Answers>
</answers>
<id>0</id>
<key>String</key>
</JobAlertsApiResponse.Data.Questions>
</filters>
<id>String</id>
<jobs>
<docs>
<CareersBaseResponse.Doc>
<anonymous>false</anonymous>
<apply_online>false</apply_online>
<apply_url>String</apply_url>
<careerfair>String</careerfair>
<city xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</city>
<company>String</company>
<contact_email>String</contact_email>
<contact_name>String</contact_name>
<contact_phone>String</contact_phone>
<country xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</country>
<country_abbr xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</country_abbr>
<description>String</description>
<diversityupgrade>0</diversityupgrade>
<duration>String</duration>
<education>String</education>
<entrylevel>false</entrylevel>
<experience>String</experience>
<expire_date>0001-01-01T00:00:00</expire_date>
<featured>false</featured>
<function xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</function>
<id>String</id>
<industry xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</industry>
<internship>false</internship>
<is_saved>false</is_saved>
<job_category>String</job_category>
<job_type>String</job_type>
<job_url>String</job_url>
<jobpool>false</jobpool>
<language>String</language>
<latitude>String</latitude>
<latlon>String</latlon>
<link>String</link>
<location xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</location>
<longitude>String</longitude>
<network_vertical>String</network_vertical>
<origin_site_id>String</origin_site_id>
<position>String</position>
<posted_date>0001-01-01T00:00:00</posted_date>
<powerpost>false</powerpost>
<preferred>false</preferred>
<rank>String</rank>
<recruiter_id>String</recruiter_id>
<region xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</region>
<requirements>String</requirements>
<salary>String</salary>
<salary_currency>String</salary_currency>
<salary_high>String</salary_high>
<salary_low>String</salary_low>
<salary_type>String</salary_type>
<security>String</security>
<site_id>String</site_id>
<sitejobid>String</sitejobid>
<socialupgrade>0</socialupgrade>
<sort>0</sort>
<source>String</source>
<source_id>String</source_id>
<spotlight>false</spotlight>
<start_date>0001-01-01T00:00:00</start_date>
<state xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</state>
<state_abbr xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</state_abbr>
<travel>String</travel>
<updated>0001-01-01T00:00:00</updated>
<veteransupgrade>0</veteransupgrade>
<zip xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d7p1:string>String</d7p1:string>
</zip>
</CareersBaseResponse.Doc>
</docs>
<num_found>0</num_found>
<rows>0</rows>
<sort>String</sort>
<start>0</start>
</jobs>
<name>String</name>
<send_frequency>0</send_frequency>
</JobAlertsApiResponse.Data>
</response>
</JobAlertsResponse>