我需要设置一个系统来接收完整的肥皂消息(然后由第三方应用程序处理该消息)并且无法理解如何使用 WCF 执行此操作。
传入消息的格式如下:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<s:Header>
<wsa:MessageID>3AAAF216520F</wsa:MessageID>
<wsa:Action>SendDocument</wsa:Action>
<wsa:To>~serviceURI~</wsa:To>
<wsa:From><wsa:Address>~fromServiceURI~</wsa:Address></wsa:From>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="D6CD5232-14CF-11DF-9423-1F9A910D4703">
<wsu:Created>~Created~</wsu:Created>
<wsu:Expires>~Expires~</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>ePAQ</wsse:Username>
</wsse:UsernameToken>
</wsse:Security>
</s:Header>
<s:Body>
<i:DistributionEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">... </i:DistributionEnvelope>
</s:Body>
</s:Envelope>