Sending array of objects to WCF

后端 未结 3 1102
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-23 15:39

In my application i want to save the data by using jQuery and Ajax.I have a WCF Service. I want to save a List of Objects by using ajax.I have tried with following code, but it

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-23 16:17

    Try BodyStyle = WebMessageBodyStyle.Bare for your server method or introduce a root element named "myEntity" in your JSON data prior to calling JSON.stringify in your client code.

提交回复
热议问题