Forum Discussion

Anonymous's avatar
Anonymous
9 years ago

Message part {http://www.w3.org/2001/04/xmlenc#}EncryptedData was not recognized.

I try to intercept encrypted soap message in wildfly 10 with soapUI. These images are my ws-security configuration of soaui.

 

  1. Below is my request soap message.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:soap="http://soap.aaa.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <soap:sayHello>
         <!--Optional:-->
         <arg0>Jina</arg0>
      </soap:sayHello>
   </soapenv:Body>
</soapenv:Envelope>

2. This is configuration of Outgoing WS-Security Configuration

  • Signature

 

* Encryption

 

3. The final Setting is Incoming WS-Security Configuration

 

4. And the returned soap fault message is following one

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Client</faultcode>
         <faultstring>Message part {http://www.w3.org/2001/04/xmlenc#}EncryptedData was not recognized.  (Does it exist in service WSDL?)</faultstring>
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

Any idea? Your help will be deeply appreciated! Thanks in advanced!