<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><br>
<br>
However, if what you are doing is emitting SAML protocol messages to
an HttpServletResponse via one of the defined SAML bindings, then
the most useful way is indeed with the higher-level Encoders, like
HTTPPostEncoder and HTTPRedirectDeflateEncoder (which as you noted
make use of SerializeSupport.nodeToString(<wbr>...)). That's probably
covered in Stefan's book; if not, the unit tests are good examples
of how to use the encoders.<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></div></blockquote><div><br></div><div>Thanks Brent. I'm going to take a look. Right now I use a combination of JSPs and Serlvets to do the same thing but the HTTPPostEncoder certainly looks cleaner. I see you have velocity templates in there. Are they easily customizable? Its not in Sefan's book (or the sample project which both use the artifact profile) but it would make a great addition (especially updating the velocity templates).</div><div><br></div><div>Thanks</div><div>Marc</div></div></div></div>