Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF ReplyAction="*" breaks metadata

The following contract does not generate an operation in the metadata, yet If I remove the reply action or set it to "" the metadata now generates the operation correctly. 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 WCF metadata missing operations if it is required.

like image 236
Dominic Tristram Avatar asked Nov 19 '10 11:11

Dominic Tristram


1 Answers

Setting ReplyAction="*" for an OperationContract means the WsdlExporter (which publishes the metadata) will ignore that Operation. Setting any other value will fix it.

like image 193
haymansfield Avatar answered Nov 09 '22 14:11

haymansfield