Hi folks,
I've got a simple ASP.NET webservice. I'm wanting to return a string of json as the result. By default, my webservice is wrapping my json result in some xml.
eg.
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://webservice.streetadvisor.com/">{.... json result in here ... }</string>
Booo.
- Is there any way i can make my webservice NOT return some xml, but just write my result as raw output?
- Can I define the HTTP-StatusCode in the webservice? eg.
200, 201, 202, 404, 500
, etc? - Can i define the response type? eg.
application/json
Cheers!