【发布时间】:2011-01-18 16:58:42
【问题描述】:
我有一个 WCF Web 服务,它向基于 Java 的客户端返回一个字符串。
<OperationContract()>
Function SomeSvc(ByVal fileString As String) As String
fileString 是一堆 xml。当客户端收到响应时,我的 xmlstring 被编码为文本。
<s:Body u:Id="_0">
<SomeSvcResponse xmlns="http://tempuri.org/">
<SomeSvcResult>> </ns2:FailureMessage> </ns:BOD> </ns:ConfirmDataArea> </ns:Confirm>
</SomeSvcResult>
</SomeSvcResponse>
</s:Body>
</s:Envelope>
为什么我的服务返回编码文本而不是 xml?
【问题讨论】:
标签: .net xml wcf web-services