<div dir="ltr"><div>This is a sample of my XML. I have several extensions. As an example I selected RequestedAudiences.</div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="test2"></div><div> <md:SPSSODescriptor AuthnRequestsSigned="true" WantAssertionsSigned="true"></div><div> <md:Extensions></div><div> <wso2:useFullyQualifiedUsername xmlns:wso2="org.wso2">true</wso2:useFullyQualifiedUsername></div><div> <wso2:DoSignResponse xmlns:wso2="org.wso2">true</wso2:DoSignResponse></div><div> <wso2:IdPInitSSOEnabled xmlns:wso2="org.wso2">true</wso2:IdPInitSSOEnabled></div><div> <wso2:RequestedAudiences xmlns:wso2="org.wso2"></div><div> <wso2:audience>Audience</wso2:audience></div><div> </wso2:RequestedAudiences></div><div> <wso2:RequestedRecipients xmlns:wso2="org.wso2"></div><div> <wso2:recipient>Recipient</wso2:recipient></div><div> </wso2:RequestedRecipients></div><div> </md:Extensions></div><div> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="<a href="https://test.com">https://test.com</a>"/></div><div> <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat></div><div> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="<a href="https://test.com">https://test.com</a>" index="0"/></div><div> </md:SPSSODescriptor></div><div></md:EntityDescriptor></div><div><br></div><div>If I get the Map of Unmarshallers, I can find an unmarsheller with the key of {org.wso2}RequestedRecipientsType.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 21, 2015 at 5:31 PM, Cantor, Scott <span dir="ltr"><<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 5/21/15, 11:54 AM, "Maduranga Siriwardena"<br>
<span class=""><<a href="mailto:maduranga.siriwardena@gmail.com">maduranga.siriwardena@gmail.com</a>> wrote:<br>
<br>
<br>
<br>
>I have created some extensions in saml metadata. I'm trying to unmarshall<br>
>the xml using opensaml2. I have created the interface, implementation<br>
>class, builder, marshaller and unmarshaller of the extension. Then I<br>
>registered the object providers using like<br>
> this (my extension is RequestedAudiences).<br>
<br>
</span>And what does the XML look like?<br>
<span class=""><br>
>It returns objects of the type<br>
>org.opensaml.xml.schema.impl.XSAnyImpl<br>
<br>
</span>That means your classes aren't being registered or don't correspond to the<br>
XML on the wire.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Scott<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:dev-unsubscribe@shibboleth.net">dev-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Maduranga Siriwardena</div><div dir="ltr">Undergraduate</div><div dir="ltr">Department of Computer Science and Engineering</div><div dir="ltr">Faculty of Engineering, University of Moratuwa.</div></div></div></div></div>
</div>