1
내 편안한 WCF 서비스에 대한 게시 요청을하려고합니다. 계약은 다음과 같습니다RESTful WCF 서비스에 대한 POST 요청 문제
[OperationContract]
[WebInvoke(Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "UploadMovie")]
string UploadMovie(Stream stream);
또는
[OperationContract]
[WebInvoke(Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat=WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "UploadMovie")]
string UploadMovie(byte [] stream);
내가 요청을 만들기 위해 Fiddler를 사용하는 것을 시도하고있다, 그러나 나는 그것이 요청에 약간의 몸을 넣어 작동시킬 수 없습니다입니다. 시체는 어떻게 생겼을까요? 나는 몸에 올바른 JSON을 작성하지하지만 여전히
가 오류를 받고 있습니까 포스트 헤더에 콘텐츠 형식을 설정하지 않는 것이 었습니다 좋은 ...
감사 한 메시지? –
내가 볼 수 없습니다. – Daniel
몸으로 { "stream": data} 같이 someting하고 있습니다. – Daniel