title: How to Decrypt Recieving Message from WSO2 Secured Proxy Service in Soap UI 5.0.0
body: <p>I am trying to call a secure proxy service in WSO2 ESB. I followed this <a href="http://tryitnw.blogspot.com/2013/07/invoking-secured-esb-proxy-service.html" rel="nofollow noreferrer">tutorial</a>. I have successfully called the proxy service. I have also received the response in my proxy service &quot;Out&quot; sequence. But when I am sending this response back to SOAPUI. I am facing certain problems.</p>
  <p>I have done all the configurations as mentioned in the tutorial.</p>
  <p><strong>First Method:</strong></p>
  <p>When I try to send my request and define &quot;Authentication&quot; Properties in the following way. In which i include both the Outgoing WSS and Incoming WSS, First SoapUI asks for password(password is &quot;wso2carbon&quot;) then it shows error.</p>
  <p><img src="https://i.stack.imgur.com/DB8BL.png" alt="enter image description here" /></p>
  <p><img src="https://i.stack.imgur.com/h6OcW.png" alt="enter image description here" /></p>
  <p><strong>Error:</strong></p>
  <pre><code>Error Getting Response :null
  </code></pre>
  <p><strong>Second Way:</strong></p>
  <p>When i only include Outgoing WSS in the &quot;Authentication Properties&quot;, SoapUI didn't ask for password and also gets a response. But the response is encrypted and didn't contain my result.
  <img src="https://i.stack.imgur.com/M9YJc.png" alt="enter image description here" /></p>
  <p><strong>Response:</strong></p>
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xenc=&quot;http://www.w3.org/2001/04/xmlenc#&quot;&gt;
     &lt;soapenv:Header&gt;
        &lt;wsse:Security soapenv:mustUnderstand=&quot;1&quot; xmlns:wsse=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&gt;
           &lt;wsu:Timestamp wsu:Id=&quot;Timestamp-174&quot; xmlns:wsu=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&quot;&gt;
              &lt;wsu:Created&gt;2015-02-18T16:18:38.284Z&lt;/wsu:Created&gt;
              &lt;wsu:Expires&gt;2015-02-18T16:23:38.284Z&lt;/wsu:Expires&gt;
           &lt;/wsu:Timestamp&gt;
           &lt;xenc:EncryptedKey Id=&quot;EncKeyId-F8FEAAA25C72C38AF11424276318297215&quot;&gt;
              &lt;xenc:EncryptionMethod Algorithm=&quot;http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p&quot;/&gt;
              &lt;ds:KeyInfo xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt;
                 &lt;wsse:SecurityTokenReference&gt;
                    &lt;wsse:KeyIdentifier EncodingType=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary&quot; ValueType=&quot;http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#ThumbprintSHA1&quot;&gt;a/jhNus21KVuoFx65LmkW2O/l10=&lt;/wsse:KeyIdentifier&gt;
                 &lt;/wsse:SecurityTokenReference&gt;
              &lt;/ds:KeyInfo&gt;
              &lt;xenc:CipherData&gt;
                 &lt;xenc:CipherValue&gt;R4aI0V2uS7h64n7qEMwzvs6iFN9YCTM7iMW7N+L3IxMP+Z7R9wwzlJpJ4vE3+tunVZyqdHzuOxGP0b3LLhNUsc7ys9QByvJoID3RkfkBlSz4AstOffL4t4CKIepx4fGXccFj0cvKxDrv/4SNREO2cQsHtYnsl/LOktxsq3Cd3kc=&lt;/xenc:CipherValue&gt;
              &lt;/xenc:CipherData&gt;
              &lt;xenc:ReferenceList&gt;
                 &lt;xenc:DataReference URI=&quot;#EncDataId-177&quot;/&gt;
              &lt;/xenc:ReferenceList&gt;
           &lt;/xenc:EncryptedKey&gt;
           &lt;wsse11:SignatureConfirmation Value=&quot;ZhUpeBE6eupgRfq+ZBKCb7lvdNeSfC/XP+9q9pgr41u53oFa93+yJ0lM5E+nqlK/8NvW4We8RYUSLwNZiJZnZ5bHBXADR9+mGsWi+mGv2grpSNS1/x40bsTSfbe+YTL1azQQNrdyFUBZHazX9I6VXaau1rYS6Wak1MC7Ndtmas4=&quot; wsu:Id=&quot;SigConf-175&quot; xmlns:wsse11=&quot;http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd&quot; xmlns:wsu=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&quot;/&gt;
           &lt;ds:Signature Id=&quot;Signature-176&quot; xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt;
              &lt;ds:SignedInfo&gt;
                 &lt;ds:CanonicalizationMethod Algorithm=&quot;http://www.w3.org/2001/10/xml-exc-c14n#&quot;/&gt;
                 &lt;ds:SignatureMethod Algorithm=&quot;http://www.w3.org/2000/09/xmldsig#rsa-sha1&quot;/&gt;
                 &lt;ds:Reference URI=&quot;#Id-1240651390&quot;&gt;
                    &lt;ds:Transforms&gt;
                       &lt;ds:Transform Algorithm=&quot;http://www.w3.org/2001/10/xml-exc-c14n#&quot;/&gt;
                    &lt;/ds:Transforms&gt;
                    &lt;ds:DigestMethod Algorithm=&quot;http://www.w3.org/2000/09/xmldsig#sha1&quot;/&gt;
                    &lt;ds:DigestValue&gt;E9q9gvsO64SKD7LFluO62pEpFIM=&lt;/ds:DigestValue&gt;
                 &lt;/ds:Reference&gt;
                 &lt;ds:Reference URI=&quot;#Timestamp-174&quot;&gt;
                    &lt;ds:Transforms&gt;
                       &lt;ds:Transform Algorithm=&quot;http://www.w3.org/2001/10/xml-exc-c14n#&quot;/&gt;
                    &lt;/ds:Transforms&gt;
                    &lt;ds:DigestMethod Algorithm=&quot;http://www.w3.org/2000/09/xmldsig#sha1&quot;/&gt;
                    &lt;ds:DigestValue&gt;Y8ICfco6fqwNx0SC6eVN+fWGo6M=&lt;/ds:DigestValue&gt;
                 &lt;/ds:Reference&gt;
                 &lt;ds:Reference URI=&quot;#SigConf-175&quot;&gt;
                    &lt;ds:Transforms&gt;
                       &lt;ds:Transform Algorithm=&quot;http://www.w3.org/2001/10/xml-exc-c14n#&quot;/&gt;
                    &lt;/ds:Transforms&gt;
                    &lt;ds:DigestMethod Algorithm=&quot;http://www.w3.org/2000/09/xmldsig#sha1&quot;/&gt;
                    &lt;ds:DigestValue&gt;VJe/lgh2CALKbFN1B+YKif6HJVM=&lt;/ds:DigestValue&gt;
                 &lt;/ds:Reference&gt;
              &lt;/ds:SignedInfo&gt;
              &lt;ds:SignatureValue&gt;FbmcmvnHalQH14UiN9m6sVNsFoy0/IAS5tsdg2hg7n5kxD/MiNz/MS9w/q0VESAT61eV4/u8p+ho
  HP0ehudU2s+U/PjGNU2M2eG7hI4T43gfdXLaOOemv4LcOeJwLTTp0at2AC2CRexUNmUMQ1UhQsoU
  qrDYb/fHh47p+sOkbGE=&lt;/ds:SignatureValue&gt;
              &lt;ds:KeyInfo Id=&quot;KeyId-F8FEAAA25C72C38AF11424276318286212&quot;&gt;
                 &lt;wsse:SecurityTokenReference wsu:Id=&quot;STRId-F8FEAAA25C72C38AF11424276318286213&quot; xmlns:wsu=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&quot;&gt;
                    &lt;wsse:KeyIdentifier EncodingType=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary&quot; ValueType=&quot;http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#ThumbprintSHA1&quot;&gt;a/jhNus21KVuoFx65LmkW2O/l10=&lt;/wsse:KeyIdentifier&gt;
                 &lt;/wsse:SecurityTokenReference&gt;
              &lt;/ds:KeyInfo&gt;
           &lt;/ds:Signature&gt;
        &lt;/wsse:Security&gt;
     &lt;/soapenv:Header&gt;
     &lt;soapenv:Body wsu:Id=&quot;Id-1240651390&quot; xmlns:wsu=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&quot;&gt;
        &lt;xenc:EncryptedData Id=&quot;EncDataId-177&quot; Type=&quot;http://www.w3.org/2001/04/xmlenc#Content&quot;&gt;
           &lt;xenc:EncryptionMethod Algorithm=&quot;http://www.w3.org/2001/04/xmlenc#aes256-cbc&quot;/&gt;
           &lt;ds:KeyInfo xmlns:ds=&quot;http://www.w3.org/2000/09/xmldsig#&quot;&gt;
              &lt;wsse:SecurityTokenReference xmlns:wsse=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&gt;
                 &lt;wsse:Reference URI=&quot;#EncKeyId-F8FEAAA25C72C38AF11424276318297215&quot;/&gt;
              &lt;/wsse:SecurityTokenReference&gt;
           &lt;/ds:KeyInfo&gt;
           &lt;xenc:CipherData&gt;
              &lt;xenc:CipherValue&gt;Jg/EODedQJtbgBYc7xUa86fAtgALcbsHoiwDLJkyoPLOq1+Se+A/HEQOnmYwJhl7prw7pVK0ap3N
  4F3Yvw3gZu0cdS+AUEAikrUzYdMwJAbQ8BYGSqK5IFdHourk74cFsshMYaMLqkwIgN+ZvmPuHxI8
  tZCv+DF0kHecsq7qLXIfjxvI87TNygkzaj9gOex/&lt;/xenc:CipherValue&gt;
           &lt;/xenc:CipherData&gt;
        &lt;/xenc:EncryptedData&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  <p><strong>Note:</strong></p>
  <p>There is no error in ESB Logs in any case. I am using WSO2 ESB 4.8.1. and SoapUI 5.0.0. If you need any more information about my proxy service code and my request, it is exactly same as mentioned in the tutorial. And it works fine because there is a response in out sequence of ESB.</p>
  <p><strong>Problem:</strong></p>
  <p>I want to understand two things , first why is my response in in encrypted form and how to decrypt it.
  Second Why when in include &quot;Incoming WSS&quot;, there is no response at all?</p>