Re: How to Include SAML token in the Security header! Possible Solution!!!

2009-01-29 Thread Seshi Patibanda
Hello Masi, Thank you for the pointer. As the setText() method is encoding the "<" and ">" chars in the SOAP header, I have used the following code to get it working. Also, as my SAML assertion is being passed as a String, I have to use the org.apache.axiom.om.impl.llom.util.AXIOMUtil.stringToOM()

Re: How to Include SAML token in the Security header! Possible Solution!!!

2009-01-29 Thread Massimiliano Masi
Seshi, I think you don't have to use the setText. I was using something like: /** * Create a new fresh security header with WSSE 1.1 and Security as localName * @param securityAssertion * @return * @throws Exception */ private Element createSecurityHeader( El

Re: How to Include SAML token in the Security header! Possible Solution!!!

2009-01-29 Thread Seshi Patibanda
All, For those who are interested, I have found a way to include the "obtained" SAML token in the created Security header () of the SOAP message. Used Axis2 AXIOM API methods to insert the Security header with the correct namespace. Upon creating the security header , we just need to add the obta

How to Include SAML token in the Security header!!

2009-01-27 Thread Seshi Patibanda
Hello all, As per the thread seen on markmail.org ( http://markmail.org/thread/iq4j6x7g247wi75x), there was an update from Ruchith Fernando dated Nov 4, 2007 about the ways to include the obtained SAML token in the Security header. First option was given as: " By creating a wsse:Securityheader e