<div dir="ltr"><div><br></div><div style>I find it particularly hard to generate the Response (Request is completed).</div><div style>I seem to lack some steps in what is needed to fill the <saml:Subject> with the values expected.</div>
<div style>Has anybody a little bit of code to share ... ?</div><div style><br></div><div style>Anonymous part of the Stack trace is here below :</div><div style><div>java.lang.IllegalArgumentException: org.opensaml.saml2.core.impl.NameIDImpl cannot be added - it is already the child of another SAML Object</div>
<div><span class="" style="white-space:pre">        </span>at org.opensaml.xml.AbstractXMLObject.prepareForAssignment(AbstractXMLObject.java:351)</div><div><span class="" style="white-space:pre">        </span>at org.opensaml.saml2.core.impl.SubjectImpl.setNameID(SubjectImpl.java:79)</div>
<div><br></div><div style>I based my code on the example code : <a href="https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/builders/ResponseBuilder.java">https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/builders/ResponseBuilder.java</a> (my code is currently almost a copy-paste from the sample since I removed all the </div>
<div style><br></div><div style>I have not registered anything in the "Configuration" of the SAML at bootstrap time (or later).</div><div style><br></div><div style>So ... I have just NO IDEA what I should specify to "basically said" deregister from the first child :) (which I have the felling, I did not register).</div>
<div style><br></div><div style>Tx,</div><div style><br></div><div style>\T,</div>
<div><span class="" style="white-space:pre">        </span></div></div><div style><br></div><div style><br></div><div style><br></div><div><br></div><div><br></div><br clear="all"><div><div dir="ltr"><div>--</div>Thomas Lionel Smets<div>
A3 SYSTEM sprl-bvba</div><div>M : +32 497 44 6812</div><div>T : +32 2 852 3341</div><div>Skype : <span style="font-family:arial;font-size:small">thomas.lionel.smets</span></div><div>@ : <a href="mailto:Thomas.Smets@a3-system.eu" target="_blank">Thomas.Smets@a3-system.eu</a></div>
<div>Always accurate info : <a href="http://tsmets.myplaxo.com/" style="margin:0px;padding:0px;color:rgb(38,123,208);font-size:16px;font-weight:bold;font-family:Arial,sans-serif;background-color:rgb(255,255,255)" target="_blank">http://tsmets.myplaxo.com</a></div>
</div></div>
</div>