I am trying to POST JSON content to a web service. It works fine from POSTER (firefox plugin) and from HTTP Client (Mac) but throws 500-Internal Server Error when trying to POST from XCode (iOS App). Can someone help me out with this.
The request details are :-
HTTP Method : POST
Content-Type : application/json
HTTP Body :
{
"HasSunRoof" : "true",
"HasTiltWheel" : "true",
"VIN" : "XXXXXXXXXXXXXXX",
"VoluntarySignatureComments" : "Voluntary sign comments",
"Make" : "Audi",
"IsVinManuallyEntered" : "false",
"AssociatedCompanyId" : "2",
"ReposessionMethod" : "Voluntary with release",
"HasKeys" : "true",
"CreatedBy" : "RAMBO",
"InteriorCondition" : "Poor",
"HasPowerWindows" : "true",
"GlassCondition" : "Good",
"TransmissionType" : "Auto",
"EngineType" : "EngineType1",
"RecoveredFromAddress1" : "Myaddress1",
"CompanyId" : "1",
"HasPowerSeats" : "true",
"HasAirConditioning" : "true",
"Mileage" : "1243",
"HasCruiseControl" : "true",
"Trim" : "Trim data",
"HasRadio" : "true",
"HasSpares" : "true",
"FuelType" : "Alternative Fuel",
"IsDriveReady" : "true",
"TireCondition" : "Average",
"IsActive" : "false",
"CreatedOn" : "5\/24\/12",
"RecoveredFromAddress2" : "Myaddress2",
"IsRunnable" : "true",
"RecoveredFromState" : "Mystate",
"BodyStyle" : "Style1",
"RecoveredFromZip" : "90009",
"IsVoluntary" : "false",
"InteriorConditionDescription" : "Poor interiors",
"RecoveredFromCity" : "Mycity",
"Model" : "A6",
"Year" : "2009"
}
EDIT : Solved See below for the fix to my noobish bug.