none
Error: An unsupported security policy assertion was detected during the security policy import: <sp:SymmetricBinding xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"> RRS feed

  • General discussion

  • I am trying to add service reference for a Java protected web service whose WSDL:

    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://soap12.service.wls.qa.wsm.oracle/"xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsp="http://www.w3.org/ns/ws-policy"xmlns:wsp1_2="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="ws11_username_token_with_message_protection_wsscService"targetNamespace="http://soap12.service.wls.qa.wsm.oracle/">

    <wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"wsu:Id="ws11_username_token_with_message_protection_wsscPortBinding_WSAM_Addressing_Policy-ws11_username_token_with_message_protection_wsscPortBinding_WSAM_Addressing_Policy">

    <wsam:Addressing xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" wsp:Optional="true">
    <wsp:Policy/>
    </wsam:Addressing>
    </wsp:Policy>
    <wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"wsu:Id="ws11_username_token_with_message_protection_wsscPort_Fault_Policy"/>
    <wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"wsu:Id="ws11_username_token_with_message_protection_wsscPort_Input_Policy">
    <sp:SignedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <sp:Body xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Namespace="http://www.w3.org/2005/08/addressing"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Name="fmw-context" Namespace="http://xmlns.oracle.com/fmw/context/1.0"/>
    </sp:SignedParts>
    <sp:EncryptedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <sp:Body xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Name="fmw-context" Namespace="http://xmlns.oracle.com/fmw/context/1.0"/>
    </sp:EncryptedParts>
    </wsp:Policy>
    <wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"wsu:Id="ws11_username_token_with_message_protection_wsscPort_Output_Policy">
    <sp:SignedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <sp:Body xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Namespace="http://www.w3.org/2005/08/addressing"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Name="fmw-context" Namespace="http://xmlns.oracle.com/fmw/context/1.0"/>
    </sp:SignedParts>
    <sp:EncryptedParts xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <sp:Body xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Name="fmw-context" Namespace="http://xmlns.oracle.com/fmw/context/1.0"/>
    </sp:EncryptedParts>
    </wsp:Policy>
    <wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"wsu:Id="wss11_username_with_message_protection_wssc_service_policy">
    <sp:SymmetricBinding xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <wsp:Policy>
    <sp:ProtectionToken>
    <wsp:Policy>
    <sp:SecureConversationToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
    <wsp:Policy>
    <sp:RequireDerivedKeys/>
    <sp:BootstrapPolicy>
    <wsp:Policy>
    <sp:SignedParts>
    <sp:Body xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Namespace="http://www.w3.org/2005/08/addressing"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
    </sp:SignedParts>
    <sp:EncryptedParts>
    <sp:Body xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702"/>
    <sp:Header xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" Name="Signature" Namespace="http://www.w3.org/2000/09/xmldsig#"/>
    </sp:EncryptedParts>
    <sp:SymmetricBinding>
    <wsp:Policy>
    <sp:ProtectionToken>
    <wsp:Policy>
    <sp:X509Token sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never">
    <wsp:Policy>
    <sp:RequireThumbprintReference/>
    <sp:RequireDerivedKeys/>
    <sp:WssX509V3Token11/>
    </wsp:Policy>
    </sp:X509Token>
    </wsp:Policy>
    </sp:ProtectionToken>
    <sp:AlgorithmSuite>
    <wsp:Policy>
    <sp:Basic128/>
    </wsp:Policy>
    </sp:AlgorithmSuite>
    <sp:Layout>
    <wsp:Policy>
    <sp:Lax/>
    </wsp:Policy>
    </sp:Layout>
    <sp:IncludeTimestamp/>
    <sp:EncryptSignature/>
    <sp:OnlySignEntireHeadersAndBody/>
    </wsp:Policy>
    </sp:SymmetricBinding>
    <sp:SignedEncryptedSupportingTokens>
    <wsp:Policy>
    <sp:UsernameToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
    <wsp:Policy>
    <sp:WssUsernameToken10/>
    </wsp:Policy>
    </sp:UsernameToken>
    </wsp:Policy>
    </sp:SignedEncryptedSupportingTokens>
    <sp:Trust13>
    <wsp:Policy>
    <sp:RequireClientEntropy/>
    <sp:RequireServerEntropy/>
    </wsp:Policy>
    </sp:Trust13>
    <sp:Wss11>
    <wsp:Policy>
    <sp:MustSupportRefKeyIdentifier/>
    <sp:MustSupportRefIssuerSerial/>
    <sp:MustSupportRefThumbprint/>
    <sp:MustSupportRefEncryptedKey/>
    </wsp:Policy>
    </sp:Wss11>
    </wsp:Policy>
    </sp:BootstrapPolicy>
    <sp:MustNotSendAmend/>
    </wsp:Policy>
    </sp:SecureConversationToken>
    </wsp:Policy>
    </sp:ProtectionToken>
    <sp:AlgorithmSuite>
    <wsp:Policy>
    <sp:Basic128/>
    </wsp:Policy>
    </sp:AlgorithmSuite>
    <sp:Layout>
    <wsp:Policy>
    <sp:Lax/>
    </wsp:Policy>
    </sp:Layout>
    <sp:IncludeTimestamp/>
    <sp:EncryptSignature/>
    <sp:OnlySignEntireHeadersAndBody/>
    </wsp:Policy>
    </sp:SymmetricBinding>
    <sp:Wss11 xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <wsp:Policy>
    <sp:MustSupportRefKeyIdentifier/>
    <sp:MustSupportRefIssuerSerial/>
    <sp:MustSupportRefThumbprint/>
    <sp:MustSupportRefEncryptedKey/>
    </wsp:Policy>
    </sp:Wss11>
    </wsp:Policy>
    <types>
    <xsd:schema>
    <xsd:import namespace="http://soap12.service.wls.qa.wsm.oracle/" schemaLocation="http://10.244.167.70:7003/OWSMTestApp-Project1-context-root/ws11_username_token_with_message_protection_wsscPort?xsd=1"/>
    </xsd:schema>
    </types>
    <message name="sayHello">
    <part name="parameters" element="tns:sayHello"/>
    </message>
    <message name="sayHelloResponse">
    <part name="parameters" element="tns:sayHelloResponse"/>
    </message>
    <portType name="ws11_username_token_with_message_protection_wssc">
    <operation name="sayHello">
    <input message="tns:sayHello" wsam:Action="http://soap12.service.wls.qa.wsm.oracle/ws11_username_token_with_message_protection_wssc/sayHelloRequest"wsaw:Action="http://soap12.service.wls.qa.wsm.oracle/ws11_username_token_with_message_protection_wssc/sayHelloRequest"/>
    <output message="tns:sayHelloResponse" wsam:Action="http://soap12.service.wls.qa.wsm.oracle/ws11_username_token_with_message_protection_wssc/sayHelloResponse"/>
    </operation>
    </portType>
    <binding name="ws11_username_token_with_message_protection_wsscPortBinding" type="tns:ws11_username_token_with_message_protection_wssc">
    <wsaw:UsingAddressing/>
    <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#ws11_username_token_with_message_protection_wsscPortBinding_WSAM_Addressing_Policy-ws11_username_token_with_message_protection_wsscPortBinding_WSAM_Addressing_Policy" wsdl:required="false"/>
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#wss11_username_with_message_protection_wssc_service_policy" wsdl:required="false"/>
    <operation name="sayHello">
    <soap12:operation soapAction="" soapActionRequired="false"/>
    <input>
    <soap12:body use="literal"/>
    <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#ws11_username_token_with_message_protection_wsscPort_Input_Policy" wsdl:required="false"/>
    </input>
    <output>
    <soap12:body use="literal"/>
    <wsp:PolicyReference xmlns:wsp="http://www.w3.org/ns/ws-policy" URI="#ws11_username_token_with_message_protection_wsscPort_Output_Policy" wsdl:required="false"/>
    </output>
    </operation>
    </binding>
    <service name="ws11_username_token_with_message_protection_wsscService">
    <port name="ws11_username_token_with_message_protection_wsscPort" binding="tns:ws11_username_token_with_message_protection_wsscPortBinding">
    <soap12:address location="http://10.244.167.70:7003/OWSMTestApp-Project1-context-root/ws11_username_token_with_message_protection_wsscPort"/>
    <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">
    http://10.244.167.70:7003/OWSMTestApp-Project1-context-root/ws11_username_token_with_message_protection_wsscPort
    </wsa:Address>
    <wsid:Identity xmlns:wsid="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
    <dsig:KeyInfo xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
    <dsig:X509Data>
    <dsig:X509Certificate>
    MIIBszCCARygAwIBAgIEUvPPOTANBgkqhkiG9w0BAQUFADAeMQswCQYDVQQGEwJVUzEPMA0GA1UEAxMGb3Jha2V5MB4XDTE0MDIwNjE4MDY0OVoXDTE0MDUwNzE4MDY0OVowHjELMAkGA1UEBhMCVVMxDzANBgNVBAMTBm9yYWtleTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAp7Z8y0vs+G1Ba/J4eP1DDyrqCbRNoemRh9YxEi7cqr6FUaa2rO6C3cQIMGFSdQ0mUAEVPhbEd/EkWQ7+kHZRH6GZt0oyvTgTvUfZuQuuI5cdDlhr7YsKCsA+yR2Qk+xiW4Esn+M27JANWwOcBl8UsNKT5trT0ufZHSyxgo9MTHMCAwEAATANBgkqhkiG9w0BAQUFAAOBgQCkSeAlJ5t8WG7FUim54JKSuQ9AS05j/jgdVc8+koqqPclggvs34gpMr9VX8IGNh0K1ujnTpWHEhT4B2Ln/r2f09ta3wGc14fsq1mGuUcNRJaqHduoxnKt+qzYtJc0zM6Sh/OVKK2Er8DhPFf6EL0hMARpC33MHbE3ysZLpySteWA==
    </dsig:X509Certificate>
    <dsig:X509IssuerSerial>
    <dsig:X509IssuerName>CN=orakey, C=US</dsig:X509IssuerName>
    <dsig:X509SerialNumber>1391710009</dsig:X509SerialNumber>
    </dsig:X509IssuerSerial>
    <dsig:X509SubjectName>CN=orakey, C=US</dsig:X509SubjectName>
    </dsig:X509Data>
    </dsig:KeyInfo>
    </wsid:Identity>
    </wsa:EndpointReference>
    </port>
    </service>
    </definitions>

    I am getting the following warning:

    Warning 1 Custom tool warning: Cannot import wsdl:binding
    Detail: An exception was thrown in a call to a policy import extension.
    Extension: System.ServiceModel.Channels.SecurityBindingElementImporter
    Error: An exception was thrown in a call to a policy import extension.
    Extension: System.ServiceModel.Channels.SecurityBindingElementImporter
    Error: An unsupported security policy assertion was detected during the security policy import: <sp:SymmetricBinding xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
                          <wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy">
                            <sp:ProtectionToken>
                              <wsp:Policy>
                                <sp:X509Token sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/Never">
                                  <wsp:Policy>
                                    <sp:RequireThumbprintReference />
                                    <sp:RequireDerivedKeys />
                                    <sp:WssX509V3Token11 />
                         ...
    XPath to Error Source: //wsdl:definitions[@targetNamespace='http://soap12.service.wls.qa.wsm.oracle/']/wsdl:binding[@name='ws11_username_token_with_message_protection_wsscPortBinding'] C:\owsmqa\OWSMClientApp\OWSMClientAp\ConsoleAppWss11UsenameWithMessageProtectionWSSC\Service References\ServiceReference1\Reference.svcmap 1 1 ConsoleAppWss11UsenameWithMessageProtectionWSSC

    Thanks in advance
    Tuesday, February 25, 2014 3:46 PM

All replies