Hi, I got the follwoing exceptions on server side: org.apache.ws.security.WSSecurityException: An error was discovered processing the <wsse:Security> header. (WSSecurityEngine: ds:KeyName does not contain a key name) ... I would like someone to shed some light on this issue as providing some possible causes for the problem.
The request sent from the client is as the following: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header>< wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse curity-secext-1.0.xsd"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-so ap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509- token-profile-1.0#X509v3" wsu:Id="EncCertId-4330824" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssec urity-utility-1.0.xsd">MIIDNDCCAp2gAwIBAgIBDDANBgkqhkiG9w0BAQQFADBmMQswC QYDVQQGEwJERTEPMA0GA1UECBMGQmF5ZXJuMQ8wDQYDVQQHEwZNdW5pY2gxDTALBgNVBAoTB EhvbWUxFTATBgNVBAsTDEFwYWNoZSBXU1M0SjEPMA0GA1UEAxMGV2VybmVyMB4XDTA2MDMxM DE3MDcyMloXDTA4MDMwOTE3MDcyMlowYTELMAkGA1UEBhMCREUxDzANBgNVBAgTBkJheWVyb jEPMA0GA1UEBxMGTXVuaWNoMQ8wDQYDVQQKEwZBcGFjaGUxDjAMBgNVBAsTBVdTUzRKMQ8wD QYDVQQDEwZXZXJuZXIwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJCpSpRxd8oDvd9NP RxQmqC0oTA/NC1EqtUKsUJGW8LRO7NmtoKM0JtDt4sGf2YO57IOB1nAsp93O6btOeC0gmeq3 iq6Zg2is0xHIf8zsoK2aIP6ndHgBL5rWvip6Hd2HwaSJhL5WR5lRYylKVVyW7QabtLYeZuYb 5SIkOiqonJ/AgMBAAGjgfYwgfMwCQYDVR0TBAIwADAsBglghkgBhvhCAQ0EHxYdT3BlblNTT CBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUwHQYDVR0OBBYEFMCSsKzxqif0xyh3og5BgHq3n1vwM IGYBgNVHSMEgZAwgY2AFNmVKko/dtCHqLHw/4S4wHoRuTF2oWqkaDBmMQswCQYDVQQGEwJER TEPMA0GA1UECBMGQmF5ZXJuMQ8wDQYDVQQHEwZNdW5pY2gxDTALBgNVBAoTBEhvbWUxFTATB gNVBAsTDEFwYWNoZSBXU1M0SjEPMA0GA1UEAxMGV2VybmVyggkA5ngAYQe82kYwDQYJKoZIh vcNAQEEBQADgYEAz1QCLXy/PLKM01QWnVfg+u9P/hhyGHAIXY2EFTn6AqZxhZXnDXzCaST4N bruoS7CpzHLlXEgmDHkYFKU9gbMDuC4riegGG7rvPEtLZC6JfaG3ivivMjSbp+k4tmtlEmdi PyTsSxyd6VJfTpuYrrEE8z/kKwNjYVlDzZWjwR6dLk=</wsse:BinarySecurityToken><x enc:EncryptedKey Id="EncKeyId-18623335"> <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <wsse:SecurityTokenReference><wsse:Reference URI="#EncCertId-4330824" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509- token-profile-1.0#X509v3"/></wsse:SecurityTokenReference> </ds:KeyInfo> <xenc:CipherData><xenc:CipherValue>U5Z/Ho0mMo2Bco6laokXC6MC9RJbfg06jWFF0 dzCgxryYVRskcSmBHe/vtasX7ahy2nLAC9WiYq5Sbw/WibUu9kSQoTYlYt0Xp9bQgu5sphoM s3bvSuKnBUtzyn0ADBLCM5wm+9F7R/5vjvoXTyjyrUN2sRjAjrsAgYpkIhWJHI=</xenc:Ci pherValue></xenc:CipherData></xenc:EncryptedKey><xenc:ReferenceList><xen c:DataReference URI="#EncDataId-17908832"/></xenc:ReferenceList></wsse:Security></SOAP-E NV:Header><SOAP-ENV:Body><xenc:EncryptedData Id="EncDataId-17908832" Type="http://www.w3.org/2001/04/xmlenc#Content"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse curity-secext-1.0.xsd"><wsse:Reference URI="#EncKeyId-18623335"/></wsse:SecurityTokenReference> </ds:KeyInfo><xenc:CipherData><xenc:CipherValue>pSC0WLt8DaTtk9E8ntDtKd0U Kox3OhDSKQ9+E2ZsObsl87P6FYr4ZtrwMe6oBTcDkNHcyfuDr5w3 6l7FST7bAORZNAtLfKYzMmBqN6+4xqiI1CdThNRf904Exqc/f56wMZrFgHeU9nBp70OvCxgs gqFO gIjlp/ODBugtm9ahS0cqFu7pCZX75xMHJMJwNYZveHEDCKTnPYy2y+sElYt9ttpu6648i/0e Z5ST Dwo/8SXgq1aVOFxQ2jazc27h2+xGHc01BFLjvD9/g17/rylJTGFVUqRVikI0hc+VrQ2GzKh4 25+P smZy8kJBY+U18Ej6EXePfQaUPfmRn35q1nXNHto8bS5c8MUlmqiVCVqFmhbP+SSShZuEGZmK 4Bdk aDSICoM3yS0+jRFmEknjHrRHYNepB0DnyYe79sPU0CpQr/2fAfELbNk9iC1Ahrda5gtg5n// kx3E 07lpTbdwFb645+EdgDPLxY8N/r6a5auQ/6aWCGNUdjxSujIIHo1+Rdwu4gtfIm8EoVPmqMhq AEDX p94QmQe+Z4mWHXLh+hOD7rEpbVrhw/5AbBqHvzsYPaPvSME3Bff74hdu8bLypcxrF9/2hWwX xtCd LZt+SS24n4vqQcx24x/07qsSDhVwoG5W</xenc:CipherValue></xenc:CipherData></x enc:EncryptedData></SOAP-ENV:Body></SOAP-ENV:Envelope> My deploy.wsdd is as the following: <deployment xmlns=http://xml.apache.org/axis/wsdd/ xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <!-- Services from NEServiceService WSDL service --> <service name="NEService" provider="java:RPC" style="rpc" use="encoded"> <parameter name="wsdlTargetNamespace" value="http://wcars2g7.ca.nortel.com:8080/axis/services/NEService"/> <parameter name="wsdlServiceElement" value="NEServiceService"/> <parameter name="schemaUnqualified" value="http://wcars2g7.ca.nortel.com:8080/axis/services/NEService"/> <parameter name="wsdlServicePort" value="NEService"/> <parameter name="className" value="com.nortel.ca.wcars2g7.axis.services.NEService.NEServiceSoapBindi ngSkeleton"/> <parameter name="wsdlPortType" value="NEService"/> <parameter name="typeMappingVersion" value="1.2"/> <parameter name="allowedMethods" value="*"/> <requestFlow> <handler name="DoSecurityReceiver" type="java:org.apache.ws.axis.security.WSDoAllReceiver"> <parameter name="user" value="wss4jcert"/> <parameter name="passwordCallbackClass" value="com.nortel.ca.wcars2g7.axis.services.NEService.PWCallback"/> <parameter name="action" value="Encrypt"/> <parameter name="decryptionPropFile" value="cryptoSKI.properties" /> </handler> </requestFlow> <responseFlow> <handler name="DoSecuritySender" type="java:org.apache.ws.axis.security.WSDoAllSender" > <parameter name="user" value="wss4jcert"/> <parameter name="passwordCallbackClass" value="com.nortel.ca.wcars2g7.axis.services.NEService.PWCallback"/> <parameter name="action" value="Encrypt"/> <parameter name="encryptionPropFile" value="cryptoSKI.properties" /> <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" /> </handler> </responseFlow> </service> </deployment> I would like someone to shed some light on this issue as providing some possible causes for the problem. Thanks for your time. Lule
