I have left by many articles and questions though we am amateurish to
solve my problem. we am new to Fiddler and don't know how to use it. we
wish to pass List ob objects as an quarrel in my WCF REST Service.Here is
my Service Interface:[OperationContract][WebInvoke(Method = "POST",
UriTemplate = "LeadStage", ResponseFormat = WebMessageFormat.Xml,
RequestFormat = WebMessageFormat.Json, BodyStyle =
WebMessageBodyStyle.Bare)]Result AddLeadStage(ReqLeadStage[] rls);This is
my ReqLeadStage class.public category ReqLeadStage{ open twine Id {
get; set; } open twine Name { get; set; } open twine
Comments_Remarks__c { get; set; } open twine Entry_Point__c { get; set;
} open twine Exit_Point__c { get; set; } open twine IsActive { get;
set; } open twine Sequence_No__c { get; set; } open twine
Stage_Description__c { get; set; } open twine CreatedById { get; set; }
open twine CreatedDate { get; set; } open twine LastModifiedById {
get; set; } open twine LastModifiedDate { get; set; }}And this is my
Web.Config
And this is my Result class:[DataContract]public category
Result{ [DataMember] open int CODE { get; set; } [DataMember]
open twine STATUS { get; set; } [DataMember] open twine DESCRIPTION
{ get; set; }}Here is how we matriarch job it from Fiddler:And JSON:[ {
"attributes" : { "type" : "Lead_Stage__c", "url" :
"/services/data/v29.0/sobjects/Lead_Stage__c/a009000000Rmb3wAAB" }, "Name"
: "Discovery", "LastModifiedById" : "005900000028VWrAAM", "CreatedById" :
"005900000028VWrAAM", "CreatedDate" : "2013-12-23T10:22:48.000+0000",
"LastModifiedDate" : "2013-12-23T10:22:48.000+0000", "Id" :
"a009000000Rmb3wAAB" }, ...... ]This is a finish settlement How we am
eventuality my Request!And this is a error:400 Bad Request Error. we am
not means to snippet it.Thanks!
No comments:
Post a Comment