0
안정된 끝점으로 작동하는 간단한 WCF 서비스를 만들려고합니다. 누군가를 바라보며 내가 누락 된 부분을 볼 수 있습니다.WCF가 RequestFormat을 준수하지 않음
[OperationContract]
[WebInvoke(Method ="POST", UriTemplate = "TestJson", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
string TestJson(CompositeType composite);
그리고 우체부에서 내가 얻을
콘텐츠 유형 '응용 프로그램/JSON은'예상 '텍스트/XML을하지 않았기 때문에 메시지를 처리 할 수 없습니다; charset = utf-8 '
web.config에 정의 된 서비스 바인딩이 있습니까? – rene
아니, 그냥 바인딩 = "basicHttpBinding" – gstewart
사용 webBinding – rene