Forum Discussion
I set 'Parts' of 'Encryption' like this: Name - arg0, Encode - Element.
Then SOAP fault message is Unmarshalling Error: unexpected Element (URI: "w3.org/2001/04/xmlenc#";, local: "EncryptedData"). Expected element <{}arg0> The raw tap of soap request shows this elements : <soapenv:Envelope xmlns:soap="http://soap.aaa.com/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"/></soapenv:Header>
<soapenv:Body>
<soap:sayHello>
<!--Optional:-->
<xenc:EncryptedData Id="ED-E2CEEE2417B16464A51468493625210128" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><wsse:SecurityTokenReference wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-soap-message-security-1.1#EncryptedKey" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"><wsse:Reference URI="#EK-E2CEEE2417B16464A51468493625207127"/></wsse:SecurityTokenReference></ds:KeyInfo><xenc:CipherData><xenc:CipherValue>Bqb+AhbTVqvque+jx4mX5RE+lZ/4s4PmHgbmMF1ez3tiudkQ83vK2Ztv0AB4Fl1Epuy0SDICe9Xv8iVmt549v38a7blUyVG1h27iyIehnq/SZC/xV+ezTSd0psBXEsx+8GImEmfqY0pe/ec63hqpxeQClWpDtJKb4oxhroMySlc=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData>
</soap:sayHello>
</soapenv:Body>
</soapenv:Envelope>
.. Any idea? please.
- Anonymous9 years ago
This is soapui configuration
1. Outgoing WS-Security Configuration
Signature (Keystore - client keystore, Alias - alias of client,Password - password of client's private key,Key Identifier Type - X.509, Parts - arg0(Name),Body(Encode)
Encryption(Keystore-client keystore,Alias - alias of server, Password-Empty, Key Identifier Type - X.509, Parts - arg0(Name), Body(Content)2. Ingoing WS-Security Configuration : encrypt Keystore-client keystore,Signature Keystore-client keystore,Password-password of client's private key
This throws HTTP/1.1 500 Internal Server Error. Your advice, pls.
Related Content
- 3 years ago
Recent Discussions
- 6 days ago