다음은 코드 단편입니다. 이 두 코드의 차이점과 이러한 코드 조각에 적합한 내용을 알려주십시오. "응용 프로그램/XML"또는 "일반/텍스트"WCF REST POST XML
[OperationContract]
[WebInvoke(Method="POST", UriTemplate="DoSomething")]
public XElement DoSomething(XElement body) {
...
return new XElement("Result");
}
[OperationContract]
[WebInvoke(Method="POST", UriTemplate="DoSomething")]
public string DoSomething(string body) {
...
return "thanks";
}
는 코드 섹션을 다시 포맷하십시오. – AxelEckenberger