<div dir="ltr">Hi All, <div><br></div><div>I just downloaded the 2.6.1 version of opensaml. I am implementing a WS-Trust cancel target, but I have troubles unmarshalling it. This code: </div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco">
CancelTargetBuilder ctb = (CancelTargetBuilder)bf.getBuilder(CancelTarget.<span style="color:rgb(3,38,204)">ELEMENT_NAME</span>);</p>
<p style="margin:0px;font-size:11px;font-family:Monaco">CancelTarget ct = ctb.buildObject();</p>
<p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px"><span class="" style="white-space:pre"><br></span></p><p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px">AssertionBuilder asse = (AssertionBuilder) bf.getBuilder(Assertion.<span style="color:rgb(3,38,204)">DEFAULT_ELEMENT_NAME</span>);<br>
</p>
<p style="margin:0px;font-size:11px;font-family:Monaco">Assertion ass = asse.buildObject();</p>
<p style="margin:0px;font-size:11px;font-family:Monaco">ass.setID(<span style="color:rgb(57,51,255)">"_123"</span>);</p>
<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,144,114)"><span style="color:rgb(34,34,34)">ct.setUnknownXMLObject(ass);</span><br></p>
<p style="margin:0px;font-size:11px;font-family:Monaco;min-height:15px">rst.getUnknownXMLObjects().add(ct);<br></p><div><br></div><div>(Where rst is a RequestSecurityToken) produces the following output: </div><div><br></div>
<div><p style="margin:0px;font-size:11px;font-family:Monaco"><wst:RequestSecurityToken xmlns:wst="<a href="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/ws-sx/ws-trust/200512</a>"></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"> <wst:TokenType>urn:token</wst:TokenType></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"> <wst:RequestType><a href="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel</a></wst:RequestType></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"> <wst:CancelTarget/></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"></wst:RequestSecurityToken></p></div><div><br></div><div>Having an invalid (empty) cancel target. It seems that the CancelTargetMarhsaller does not </div><div>
calls the marshaller of its descendants. According to this: </div><div><br></div><div><a href="http://grepcode.com/file/repo1.maven.org/maven2/org.opensaml/openws/1.5.0/org/opensaml/ws/wstrust/impl/CancelTargetMarshaller.java#CancelTargetMarshaller">http://grepcode.com/file/repo1.maven.org/maven2/org.opensaml/openws/1.5.0/org/opensaml/ws/wstrust/impl/CancelTargetMarshaller.java#CancelTargetMarshaller</a><br>
</div><div><br></div><div><br></div><div>It's empty! </div><div><br></div><div>Any suggestions?</div>-- <br>Massimiliano Masi<br><br><a href="http://www.mascanc.net/~max">http://www.mascanc.net/~max</a>
</div></div>