Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
fiddler post

XML
http://localhost:15641/api/Complaints/NewComplaints
<pre lang="vb">User-Agent: Fiddler
Content-Type: application/json
Host: localhost:15641
Content-Length: 63</pre>


RequestBody
C#
{
"CostCentre": "test"
"ComplaintText":"this is test complaint"
}



WebApi Controller

C#
[Route("api/Complaints/NewComplaints")]

        [HttpPost]
        public void CreateNewComplaint(BLL.Complaint complaint)
        {
            //call BLL Create complaint method
        }


      }



my object is with null values
where am i doing wrong ?
i put breakpoints on controller the complaint object is set with all null values
if i don't pass the values complaint object it self is null
how can i pass the object
Posted
Updated 14-Jan-15 2:42am
v4

1 solution

You should try Adavnced rest client available as addon In google chrome.
it is more user friendly and might help you here.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900