<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 6/12/15 10:44 AM, Surinaidu Majji
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGNcRLTOVgSR3tG5uiBy37WxGNdXLL-6BSWfxjDA6V-bqi5TvQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks for the reply Brent,
        <div>We are able to prepare AuthnRequest from
          AuhtenticationRequestBuilder as per your suggestion but not
          able to Marshel it properly.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <p class="MsoNormal"><span
              style="font-size:10pt;font-family:Consolas;color:black">org.opensaml.core.xml.io.MarshallerFactory
marfact
              = </span><b><span
                style="font-size:10pt;font-family:Consolas;color:rgb(127,0,85)">new</span></b><span
              style="font-size:10pt;font-family:Consolas;color:black"> 
              org.opensaml.core.xml.io.MarshallerFactory();</span><span
              style="font-size:10pt;font-family:Consolas"></span></p>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    You can't just new() a MarshallerFactory like that.  It's empty. 
    You need to directly or indirectly use the one that's been loaded
    with the Marshaller impls via the bootstrap (v2) or init (v3)
    process.<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CAGNcRLTOVgSR3tG5uiBy37WxGNdXLL-6BSWfxjDA6V-bqi5TvQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <p class="MsoNormal"><span
              style="font-size:10pt;font-family:Consolas"><font
                color="#ff0000">Marshaller mar =
                marfact.getMarshaller(authnRequest);</font></span></p>
          <br>
          <p class="MsoNormal"><span
              style="font-size:10pt;font-family:Consolas;color:black">In
              the above code, we are getting "</span><span
style="color:rgb(255,0,0);font-family:Consolas;font-size:13.3333330154419px">mar</span><span
              style="color:black;font-family:Consolas;font-size:10pt">"
              as null.</span></p>
          <p class="MsoNormal"><span
              style="color:black;font-family:Consolas;font-size:10pt"><br>
            </span></p>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <br>
    The answer is the similar as for the builders.  You obtain them from
    the configured XMLObject providers.  I said earlier:<br>
    <br>
    <br>
    <blockquote type="cite">... We recommend you obtain XMLObject
      builders, marshallers and unmarshallers via the registered
      providers.  In v2, builder usage:<br>
      <br>
      <a class="moz-txt-link-freetext"
href="https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUsrManJavaCreateFromScratch">https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUsrManJavaCreateFromScratch</a><br>
      <br>
      In v3, no wiki docs yet, but either use the global
      XMLObjectProviderRegistry via
      org.opensaml.core.xml.config.XMLObjectProviderRegistrySupport, or
      the higher level methods on
      org.opensaml.core.xml.util.XMLObjectSupport.<br>
    </blockquote>
    <br>
    The Marshaller wiki docs link for v2 is:
<a class="moz-txt-link-freetext" href="https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUsrManJavaWriteToXML">https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUsrManJavaWriteToXML</a><br>
    <br>
    Same for Unmarshallers.<br>
    <br>
    Most of the concepts (if not the specifics, package names, etc) from
    v2 are the same, so if you haven't read the entire v2 user's manual,
    you really should:<br>
    <br>
<a class="moz-txt-link-freetext" href="https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUserManual">https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUserManual</a><br>
  </body>
</html>