小编Dom*_*ram的帖子

WCF ReplyAction ="*"打破元数据

以下合同不会在元数据中生成操作,但如果我删除了回复操作或将其设置为"",则元数据现在可以正确生成操作.为什么?

[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元数据中缺少操作.

.net c# wcf web-services metadata

7
推荐指数
1
解决办法
2061
查看次数

标签 统计

.net ×1

c# ×1

metadata ×1

wcf ×1

web-services ×1