I am trying to post values using RestClient. It always shows the following error.
RestClient::BadRequest (400 Bad Request):
Tried all the answers in SO. Nothing helped. This is my code.
response = RestClient.post "http://192.72.114.66/WDSTEST_WS/WDS_SERVICE.svc/companymaster/Add",{"CompanyMaster":{"Address1":"Raja Street cbe","BussinessProfile":"lll","City":"statee","CompanyID":24,"CompanyName":"Ramu Metall","CreatedBy":138,"Email":"abcd@gmail.com","IsActive":true,"LandLine":"435435","MobileNumber1":"8787871221","ModifiedBy":138,"PinCode":0,"Remarks":"null","State":"null","TonnageKM":"0","TotalInsurableGoodValueForPreviousYear":0.00,"TotalInsurableGoodValuePerYear":0.00,"TotalTransportationCostForPreviousYear":0.00,"TotalTransportationCostPerYear":0.00,"TotalTransportedWeightPerYear":0.00,"Website":"null"}}, headers: {"Content-Type" => "application/json"}
This is just a dummy data. Please help. Thanks in advance.