以下合同不会在元数据中生成操作,但如果我删除了回复操作或将其设置为"",则元数据现在可以正确生成操作.为什么?
[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);
}
Run Code Online (Sandbox Code Playgroud)
如果需要,完整服务代码在WCF元数据中缺少操作.