I have a wcf 3.5 rest service which gets a dataset from database, i want to sent this data as xml or json according to the mime type defined in client script.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could build your operation url(either xml or Json) to http request.
for e.g
and use Post method to service.svc/operation
on your service contracts build 2 different method with WebInvoke attribute to response with appropriate format.
for .NET 3.5 and enable use of non-ASP.NET client, you need to configure the address endpoint.
for detail, you could refer MSDN.