<div dir="ltr">So what you mean is my element name must be "Condition" with the namespace saml and typename (in this case RequestedAudiences) should be typename. Please correct me if I am wrong.<div><br></div><div>Can you please point me to some article that explains how to create saml metadata extensions using opensaml 2?</div><div><br></div><div>Thank you.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 21, 2015 at 6:00 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, 12:08 PM, "Maduranga Siriwardena"<br>
<span class=""><<a href="mailto:maduranga.siriwardena@gmail.com">maduranga.siriwardena@gmail.com</a>> wrote:<br>
<br>
<br>
<br>
>This is a sample of my XML. I have several extensions. As an example I<br>
>selected RequestedAudiences.<br>
<br>
</span>Reason I asked is that's invalid. SAML extension containers like<br>
Conditions require that the extension element by done via xsi:type, not<br>
element name. And you're registering the *type*, not the element name.<br>
<span class=""><br>
> <wso2:RequestedAudiences xmlns:wso2="org.wso2"><br>
<br>
</span>That should be <saml:Condition xsi:type="wso2:RequestedAudiences"> or<br>
whatever the typename is. An element like that will be schema-invalid.<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></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>