Returning a custom formatted SOAP message from WCF

后端 未结 1 1354
情歌与酒
情歌与酒 2021-01-27 06:33

I have a requirement where a method call on a WCF service has to return a SOAP message in the format below:




        
1条回答
  •  情歌与酒
    2021-01-27 07:17

    Once I had very similar question: Controlling WCF Message Body serialization Probably the answer will help you too (please note it requires WCF 4).

    The alternative is writing directly to the response streem even without need to work with abstract Message object. This approach is described in this thread: WCF 4 REST - Acquiring the underlying response stream object for writing

    0 讨论(0)
提交回复
热议问题