W
want 2 Learn
Guest
I have a WCF listener on Windows Service.
when i send a Json to this listener
it appears as xml for some reason...
a the detention in the interface :
[OperationContract]
[WebInvoke(Method = "POST",
BodyStyle = WebMessageBodyStyle.Bare,
RequestFormat = WebMessageFormat.Json,
UriTemplate = "ReceiveData")]
void ReceiveData();
the Json sent with header : "application/json; charset=utf-8"
not clear to me the reason for this.
any idea?
Continue reading...
when i send a Json to this listener
it appears as xml for some reason...
a the detention in the interface :
[OperationContract]
[WebInvoke(Method = "POST",
BodyStyle = WebMessageBodyStyle.Bare,
RequestFormat = WebMessageFormat.Json,
UriTemplate = "ReceiveData")]
void ReceiveData();
the Json sent with header : "application/json; charset=utf-8"
not clear to me the reason for this.
any idea?
Continue reading...