Hello Ranchers I am trying to consume .net Webservice by making java client. The service is using WSSE security standards. We have to encrypt the body contents of Soap message with the help og User Name Security token.I am using WSS4J for doing this but the .net is not able to decrypt the data. Seeems like our keys are different, The AES256 algorithm has to be used for encryption of messages and key should be combination of password+nonce+createdtimestamp. I am attaching the java code which I am using to encrypt the message. Please suggest what mistake I am making. I will be very thankful.