Two Laptop Bag*
The moose likes Web Services and the fly likes Rampart alias name is null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Rampart alias name is null" Watch "Rampart alias name is null" New topic
Author

Rampart alias name is null

siva kumarl
Greenhorn

Joined: Nov 29, 2008
Posts: 21
Hi Friends,
I have developed a webservice with Encrypt and Signature tokens as security, my client is .NET, while connecting i am getting an error as below

2009-12-16 13:39:45,604 [TP-Processor2] ERROR org.apache.axis2.engine.AxisEngine - WSDoAllReceiver: security processing fail
ed
org.apache.axis2.AxisFault: WSDoAllReceiver: security processing failed

Caused by: org.apache.ws.security.WSSecurityException: The signature or decryption was invalid; nested exception is:
java.lang.Exception: alias is null
Caused by: java.lang.Exception: alias is null

How to solve this situation. kindly help me

Thanks in advance
-----------
Siva kumar

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41613
    
  55
What does the SOAP look like that is being sent? Does it conform to the WS-Security standard?


Ping & DNS - my free Android networking tools app
siva kumarl
Greenhorn

Joined: Nov 29, 2008
Posts: 21
Request is as follows:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
s:mustUnderstand="1">
<o:BinarySecurityToken
u:Id="uuid-44be1d15-8af6-429e-a633-4be8f1e739f5-2"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">
MIICKDCCAZECBEsMz8YwDQYJKoZIhvcNAQEEBQAwWzELMAkGA1UEBhMCSU4xCzAJBgNVBAgTAkFQMQwwCgYDVQQHEwNWU1AxDDAKBgNVBAoTA1lTRTEMMAoGA1UECxMDWVNFMRUwEwYDVQQDEwxZQUxBTUFOQ0hJTEkwHhcNMDkxMTI1MDYzMzQyWhcNMTUxMTI0MDYzMzQyWjBbMQswCQYDVQQGEwJJTjELMAkGA1UECBMCQVAxDDAKBgNVBAcTA1ZTUDEMMAoGA1UEChMDWVNFMQwwCgYDVQQLEwNZU0UxFTATBgNVBAMTDFlBTEFNQU5DSElMSTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAitT4Erhz3J239bbecmJubqOY/Y08CGyeX+KGMo2TqQfVyX+DXXuUsFtyp7PZvs40RH7NfL1d7eJYJPAoxp8GpjbxJ2DDyVTnCgiK3FIbcU8tpEUMRbS9Y/rDxuImwRBA0M7yrMUI2g8GgAqEkXAZ80V/czzm1DRGC9H/nqMXxT0CAwEAATANBgkqhkiG9w0BAQQFAAOBgQBrvfVYiIHsSTXLu/WXwUXXAOx0G7dtp4HBjZUlTF1HeDWJAX3RjuDBQeEfpYa2yFDlN2dsItxS9jxyrkOnxdFlswbOa/eTq3j6PXl7s2Vx6d/PPupyJV5vf4CHp1hYIAeTIrYJf6Q3eLKTjCjt09to9Ygy8zDMdpcjadE0yuIS/g==
</o:BinarySecurityToken>
<e:EncryptedKey xmlns:e="http://www.w3.org/2001/04/xmlenc#"
Id="_0">
<e:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<o:SecurityTokenReference>
<X509Data>
<X509IssuerSerial>
<X509IssuerName>
CN=YALAMANCHILI, OU=YSE, O=YSE,
L=VSP, S=AP, C=IN
</X509IssuerName>
<X509SerialNumber>
1259130913
</X509SerialNumber>
</X509IssuerSerial>
</X509Data>
</o:SecurityTokenReference>
</KeyInfo>
<e:CipherData>
<e:CipherValue>
BrnZKoPbH5awJ2AAPzWgU/1rl41xYreGsY0DsIEDj/cqajnvvR7DAIbOKAFCdo2qMy3j+NBIDTqDAY1RjqtyoeLqMa1DFnaOwpTYYZ9FIgpp1ulSfWwGf91M2f44NNrKB7RG7EWhu4HSwH03VMpW+M+PyLSwaj1bW/V/GpzhjnY=
</e:CipherValue>
</e:CipherData>
<e:ReferenceList>
<eataReference URI="#_2" />
</e:ReferenceList>
</e:EncryptedKey>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="#_1">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>
T8OEOfpC22IfegITR83D0f+jcsQ=
</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>
XPD5JQT8d7xttnoQy5U6YGtigtOQjPEiKcKeuICqSLcD3adkFl+Vavk+ZOEEQnV9Gts976tvzlfD
FWOn59lmcun4pqfF3sD2Obts7/e8DcPUXu1VFveKrAeB1gjpP3Iyd8HMjK3PbfyCvEVNfVnhSX61xGelH
Z78tUYYI8RG/wQ=
</SignatureValue>
<KeyInfo>
<o:SecurityTokenReference>
<o:Reference
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
URI="#uuid-44be1d15-8af6-429e-a633-4be8f1e739f5-2" />
</o:SecurityTokenReference>
</KeyInfo>
</Signature>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" u:Id="_1">
<e:EncryptedData xmlns:e="http://www.w3.org/2001/04/xmlenc#"
Id="_2" Type="http://www.w3.org/2001/04/xmlenc#Content">
<e:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" />
<e:CipherData>
<e:CipherValue>
dBLGv8DQOuX+39y5YOVrvzDl3ILy2sHJHWf9zsIqtB/ro1rJZaH2nRHL86/cClzEJDUr9jRn
+7+mryNg9oz1FIsoGY/BkCVm3B2kh0ea6F2U1u+ejWjuA4ROi6Lc8UBwalFMBCrPhE2KYgii
b0bX18RBUZReL7gIQ20vz9RgjOiuHGq9bTQbmX18uWH3B9m7ZuHKEvWbKmCcpNiTIFMT1gC2TwUKyw
Cx+SB0k4/BiX0yf5nqGVCr+MzGPsg3vPZCg0orfssW6jJqk6rxC8IrrHauLdgMjfRaawAy
p52jghtuUJvNAuJKh7rXuiJ13rf4wRLKOAEafBbFSaGmiQlbhE3xQMi/woJG005GXWR9g1
PspUSQckkST9hOQeRllbaGydUy9jqIzdOHSgIktk6yA505PoyXDigjZt2sAvnAGpx81QUdHt2PtVCo
/jmMZ4ehAJDNWpdgPL/rvHdch9An56umh5+aQnxTghUGrniuneUXBWphfREe86znk9tgOnLUmzp+61
WIPiQxhwWv+a+0CncGLxDnnh4d3XMOfkCYfwm/ikWaYAx1YPHMYdyXIgzFYrcJwzFCn1CzNeryF5jz
SWQPrJs5B3YEmI0bwMXJAKpcWc6OkkEXJbgUcEyTkazpLx215CCYaO3aTspOCJoR0Q==
</e:CipherValue>
</e:CipherData>
</e:EncryptedData>
</s:Body>
</s:Envelope>
 
jQuery in Action, 2nd edition
 
subject: Rampart alias name is null