2010-11-19 3 views
6

다음 계약에서는 메타 데이터에 작업을 생성하지 않지만 아직 회신 작업을 제거하거나 설정하면 메타 데이터가 올바르게 작업을 생성합니다. 왜?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); 
} 

전체 서비스 코드는 필요한 경우 WCF metadata missing operations입니다.

답변

5

OperationContract에 대한 ReplyAction = "*"설정은 WsdlExporter (메타 데이터 게시)가 해당 작업을 무시한다는 것을 의미합니다. 다른 값을 설정하면 문제가 해결됩니다.

+3

속성을 완전히 삭제해도 여전히 작동 할 수 있습니다. –

관련 문제