WCF ReplyAction = "*" breaks metadata

The following contract does not generate the operation in the metadata, but if I delete the response or set it to "", the metadata now correctly generates the operation. Why?

[System.ServiceModel.ServiceContractAttribute(Namespace="http://Test/Publish", ConfigurationName="IFCRPublish")] public interface IFCRPublish { // CODEGEN: Generating message contract since the operation PublishNotification is neither RPC nor document wrapped. [System.ServiceModel.OperationContractAttribute(Action="http://Test/PublishNotification", ReplyAction="*")] PublishNotificationResponse1 PublishNotification(PublishNotificationRequest1 request); } 

The full service code is in the WCF metadata without operations , if necessary.

+6
c # web-services metadata wcf
source share
1 answer

Setting ReplyAction = "*" for OperationContract means that WsdlExporter (which publishes metadata) ignores this operation. Setting any other value will fix it.

+5
source share

All Articles