Svcutil vs WS Policy

时间:2014-02-11 12:30:49

标签: wcf wsdl svcutil.exe

我有一个带有以下WS-Policy块的wsdl:

<wsp:Policy wsu:Id="MemberBindingPolicy">
    <wsp:All>
        <sp:AsymmetricBinding>
            <wsp:Policy>
                <sp:InitiatorToken>
                    <wsp:Policy>
                        <sp:X509Token sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never">
                            <wsp:Policy>
                                <sp:WssX509V1Token11/>
                                <sp:RequireIssuerSerialReference/>
                            </wsp:Policy>
                        </sp:X509Token>
                    </wsp:Policy>
                </sp:InitiatorToken>
                <sp:RecipientToken>
                    <wsp:Policy>
                        <sp:X509Token sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never">
                            <wsp:Policy>
                                <sp:WssX509V1Token11/>
                                <sp:RequireIssuerSerialReference/>
                            </wsp:Policy>
                        </sp:X509Token>
                    </wsp:Policy>
                </sp:RecipientToken>
                <sp:AlgorithmSuite>
                    <wsp:Policy>
                        <sp:Basic256Sha256/>
                        <sp:InclusiveC14N>http://www.w3.org/2001/10/xml-exc-c14n#</sp:InclusiveC14N>
                    </wsp:Policy>
                </sp:AlgorithmSuite>
                <sp:Layout>
                    <wsp:Policy>
                        <sp:Strict/>
                    </wsp:Policy>
                </sp:Layout>
                <sp:OnlySignEntireHeadersAndBody/>
            </wsp:Policy>
        </sp:AsymmetricBinding>
        <sp:SignedParts>
            <sp:Body/>
        </sp:SignedParts>
        <sp:Wss11>
            <wsp:Policy>
                <sp:MustSupportRefIssuerSerial/>
            </wsp:Policy>
        </sp:Wss11>
    </wsp:All>
</wsp:Policy>

我运行svc util并返回以下错误: 在安全策略导入期间检测到不受支持的安全策略断言 XPath:// wsdl:definitions [@targetNamespace ='http://xxxx.com'] / wsdl:binding [@ name ='IssAuthSoapBinding']

是否有解决方法(在代码中,或者根本没有使用svcutil)? 米。

0 个答案:

没有答案