CancelTarget problem when unmarshalling

Massimiliano Masi massimiliano.masi at gmail.com
Tue Feb 4 06:55:21 EST 2014


Hi All,

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:

CancelTargetBuilder ctb = (CancelTargetBuilder)bf.getBuilder(CancelTarget.
ELEMENT_NAME);

CancelTarget ct = ctb.buildObject();


AssertionBuilder asse = (AssertionBuilder) bf.getBuilder(Assertion.
DEFAULT_ELEMENT_NAME);

Assertion ass = asse.buildObject();

ass.setID("_123");

ct.setUnknownXMLObject(ass);

rst.getUnknownXMLObjects().add(ct);

(Where rst is a RequestSecurityToken) produces the following output:

<wst:RequestSecurityToken xmlns:wst="
http://docs.oasis-open.org/ws-sx/ws-trust/200512">

    <wst:TokenType>urn:token</wst:TokenType>

    <wst:RequestType>
http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Cancel
</wst:RequestType>

    <wst:CancelTarget/>

</wst:RequestSecurityToken>

Having an invalid (empty) cancel target. It seems that the
CancelTargetMarhsaller does not
calls the marshaller of its descendants. According to this:

http://grepcode.com/file/repo1.maven.org/maven2/org.opensaml/openws/1.5.0/org/opensaml/ws/wstrust/impl/CancelTargetMarshaller.java#CancelTargetMarshaller


It's empty!

Any suggestions?
-- 
Massimiliano Masi

http://www.mascanc.net/~max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20140204/0819c92d/attachment.html 


More information about the dev mailing list