1

このインターフェースを備えた汎用サービスがあります

[OeprationContract(Action="*", ReplyAction="*")]
Message ProcessMessage(Message message);

実装では、返信メッセージのヘッダーを設定する必要があります。入力メッセージから適切なアドレス指定ヘッダーを作成する方法はありますか、またはすべてを手動で設定する必要がありますか (つまり、In.replyTo を out.To にコピーし、In.messageId を out.MessageId にコピーします...)

ありがとう

4

1 に答える 1

1

You'll need to do it manually; when you declare an operation taking an returning a Message object you're basically telling WCF that you want total control over the message, so no correlation between request and reply will be done for you.

于 2011-07-19T15:56:00.537 に答える