Lupan
15 years agoNew Contributor
WS-Security: Insert thumbprint reference
Hello everyone !
I'm trying to create a test message with SoapUI 3.5.1 for a webservice I'm creating. The WS should be compliant with this WS-Policy:
Well, the problem is, the policy requires a thumbprint reference as Encryption Mechanism. However, I have no Idea how to change that in SOAP UI, so I'm getting the following error message in the server:
"Error in Encryption reference mechanism compliance : Expected : thumbprint , Actual : direct."
So, how can I make SOAPUi use the thumbprint mechanism ?? Any help will be appretiated !
Thanks!
I'm trying to create a test message with SoapUI 3.5.1 for a webservice I'm creating. The WS should be compliant with this WS-Policy:
<wsp:Policy wsu:Id="CatalogoDadosPort_Fault_Policy">
<sp:SignedParts />
<sp:SignedElements />
<sp:EncryptedParts />
<sp:EncryptedElements />
</wsp:Policy>
<wsp:Policy wsu:Id="CatalogoDadosPort_Input_Policy">
<sp:SignedParts>
<sp:Body />
<sp:Header Name="fmw-context" Namespace="http://xmlns.oracle.com/fmw/context/1.0" />
<sp:Header Name="" Namespace="http://www.w3.org/2005/08/addressing" />
<sp:Header Name=""
Namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" />
</sp:SignedParts>
<sp:SignedElements />
<sp:EncryptedParts>
<sp:Body />
<sp:Header Name="fmw-context" Namespace="http://xmlns.oracle.com/fmw/context/1.0" />
</sp:EncryptedParts>
<sp:EncryptedElements />
</wsp:Policy>
<wsp:Policy wsu:Id="CatalogoDadosPort_Output_Policy">
<sp:SignedParts>
<sp:Body />
</sp:SignedParts>
<sp:SignedElements />
<sp:EncryptedParts>
<sp:Body />
</sp:EncryptedParts>
<sp:EncryptedElements />
</wsp:Policy>
<wsp:Policy wsu:Id="wss11_x509_token_with_message_protection_service_policy">
<sp:SymmetricBinding>
<wsp:Policy>
<sp:ProtectionToken>
<wsp:Policy>
<sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
<wsp:Policy>
<sp:RequireThumbprintReference />
<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:ProtectTokens />
<sp:OnlySignEntireHeadersAndBody />
</wsp:Policy>
</sp:SymmetricBinding>
<sp:EndorsingSupportingTokens>
<wsp:Policy>
<sp:X509Token
sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
<wsp:Policy>
<sp:WssX509V3Token11 />
</wsp:Policy>
</sp:X509Token>
</wsp:Policy>
</sp:EndorsingSupportingTokens>
<sp:Wss11>
<wsp:Policy>
<sp:RequireSignatureConfirmation />
<sp:MustSupportRefEncryptedKey />
</wsp:Policy>
</sp:Wss11>
</wsp:Policy>
Well, the problem is, the policy requires a thumbprint reference as Encryption Mechanism. However, I have no Idea how to change that in SOAP UI, so I'm getting the following error message in the server:
"Error in Encryption reference mechanism compliance : Expected : thumbprint , Actual : direct."
So, how can I make SOAPUi use the thumbprint mechanism ?? Any help will be appretiated !
Thanks!