[英]Is WCF the correct approach for this generic SOAP message?
A third party wishes to send us SOAP messages. 第三方希望向我们发送SOAP消息。
It is necessary that everything between the <s:Body></s:Body>
element in our response is under our control. 我们的响应中<s:Body></s:Body>
元素之间的所有内容都必须在我们的控制之下。
After a few hours of research it seems that WCF messages will wrap the response in an xml element with the name of the WCF method. 经过几个小时的研究,似乎WCF消息会将响应包装在带有WCF方法名称的xml元素中。
Is there a way around this using WCF? 使用WCF可以解决此问题吗? Or is there a better, different altogether approach? 还是有更好的,完全不同的方法?
尝试将其定义为裸服务:
[SoapDocumentService(Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Bare)]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.