Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is supported by WSO2 ESB. </p> <p>Actually the problem is with the message level policy that you are trying to engage. You are trying to provide a Policy Attachment element, not a policy element. This approach works if you are trying to engage multiple policies to an Axis2 service through its services.xml. But if you are using the Carbon policy editor, it expects you to provide a valid policy element.</p> <p>Following policy element can be derived from the policy attachment element you have used.</p> <pre><code>&lt;wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Service_message_policy"&gt; &lt;wsp:ExactlyOne&gt; &lt;wsp:All&gt; &lt;sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"&gt; &lt;sp:Body /&gt; &lt;sp:Header Name="To" Namespace="http://www.w3.org/2005/08/addressing" /&gt; &lt;sp:Header Name="From" Namespace="http://www.w3.org/2005/08/addressing" /&gt; &lt;sp:Header Name="FaultTo" Namespace="http://www.w3.org/2005/08/addressing" /&gt; &lt;sp:Header Name="ReplyTo" Namespace="http://www.w3.org/2005/08/addressing" /&gt; &lt;sp:Header Name="MessageID" Namespace="http://www.w3.org/2005/08/addressing" /&gt; &lt;sp:Header Name="RelatesTo" Namespace="http://www.w3.org/2005/08/addressing" /&gt; &lt;sp:Header Name="Action" Namespace="http://www.w3.org/2005/08/addressing" /&gt; &lt;/sp:SignedParts&gt; &lt;sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"&gt; &lt;sp:Body /&gt; &lt;/sp:EncryptedParts&gt; &lt;/wsp:All&gt; &lt;/wsp:ExactlyOne&gt; &lt;/wsp:Policy&gt; </code></pre> <p>Hope this helps !</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload