<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 5/21/15 7:54 AM, Maduranga
      Siriwardena wrote:<br>
    </div>
    <blockquote
cite="mid:CAFxuRFi=JFdng+HnNNinQ+_ceDizdyL9fs3R_2P76g2XJrxnig@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
          <div>Configuration.registerObjectProvider(RequestedAudiences.TYPE_NAME,
            new RequestedAudiencesBuilder(), new
            RequestedAudiencesMarshaller(), new
            RequestedAudiencesUnmarshaller());</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Looking at the XML you posted later, I think the literal problem is
    very simple: You are registering your provider classes with
    presumably a *type* QName RequestedAudiences.TYPE_NAME (although I
    don't know what that constant actually has for a value) - but in the
    XML your elements aren't carrying xsi:type.  So you need to register
    the elements with the *element* name's QName. <br>
    <br>
    Most XML you deal with in SAML doesn't usually carry xsi:type, so
    the vast majority case is lookup by element name.  However, if you
    look at the core OpenSAML providers, you'll see that we typically
    register the providers under both the element name and the type
    name, just in case.<br>
    <br>
    <br>
  </body>
</html>