Hi Prabath, I am happy for your response , i am not using any separate policy file , just i am using configuration in service.xml file. please find the below configuration details.
Service.xml <module ref="rampart" /> <parameter name="InflowSecurity"> <action> <items>Encrypt Signature</items> <enableSignatureConfirmation>false</enableSignatureConfirmation> <decryptionPropFile>service.properties</decryptionPropFile> <signaturePropFile>service.properties</signaturePropFile> <passwordCallbackClass>com.ycs.narada.services.PasswordCallBackHandler</passwordCallbackClass> </action> </parameter> <parameter name="OutflowSecurity"> <action> <items>Encrypt Signature</items> <user>service</user> <encryptionUser>client</encryptionUser> <encryptionPropFile>service.properties</encryptionPropFile> <signaturePropFile>service.properties</signaturePropFile> <enableSignatureConfirmation>false</enableSignatureConfirmation> <signatureKeyIdentifier>DirectReference</signatureKeyIdentifier> <encryptionKeyIdentifier>DirectReference</encryptionKeyIdentifier> <passwordCallbackClass>com.ycs.narada.services.PasswordCallBackHandler</passwordCallbackClass> </action> </parameter> Request i am getting as: <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:o="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> <e:DataReference 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> As per my understanding, it is enough, let me know if anything else required. Kindly help me to solve this problem and i am trying from last one week. Prabath Siriwardena-2 wrote: > > Hi Siva; > > Can you please share the security policy of your service.. > > Also - if possible please capture the request generated from the .NET > client. > > Thanks & regards. > -Prabath > > SivaKumarl wrote: >> Hi Friends, >> >> I have developed webservices in java and enabled the >> security >> for this services. My client is in .NET ,when client connection i am >> getting >> the below error. >> >> >> Caused by: org.apache.ws.security.WSSecurityException: The signature or >> decryption was invalid; nested exception is: >> java.lang.Exception: alias is null >> >> Friends kindly help me to solve this problem. >> >> Thanks & Regards >> ----------- >> Siva kumar. >> >> > > > -- View this message in context: http://old.nabble.com/Rampart-alias-in-null-tp26825462p26837051.html Sent from the Axis - Dev mailing list archive at Nabble.com.