<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#003300">
I am building AuthnRequest with my extensions.<br>
It generates the following which can easily be marshalled &
unmarshalled :<br>
<tt><br>
</tt><tt>********************** Slightly anonymized & beautyfied
********************** </tt><tt><br>
</tt><tt><?xml version="1.0" encoding="UTF-8"?></tt><tt><br>
</tt><tt><saml2p:AuthnRequest
xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" </tt><tt><br>
</tt><tt>
xmlns:Cpy"urn:my:Cpy:names:tc:SAML:2.0:assertion" </tt><tt><br>
</tt><tt>
xmlns:Cpyp="urn:my:Cpy:names:tc:SAML:2.0:protocol" </tt><tt><br>
</tt><tt>
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" </tt><tt><br>
</tt><tt>
AssertionConsumerServiceURL=<a class="moz-txt-link-rfc2396E" href="https://www.myCpy.com">"https://www.myCpy.com"</a> </tt><tt><br>
</tt><tt> Destination="My Destination"
ID="ID-1370615996290-1445035680" </tt><tt><br>
</tt><tt>
IssueInstant="2013-06-07T14:39:56.296Z" </tt><tt><br>
</tt><tt>
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" </tt><tt><br>
</tt><tt> ProviderName="PROV" </tt><tt><br>
</tt><tt> Version="2.0"></tt><tt><br>
</tt><tt> <saml2p:Extensions></tt><tt><br>
</tt><tt> <Cpy:Min>10</Cpy:Min></tt><tt><br>
</tt><tt> <Cpy:TSPT>TspType-11</Cpy:TSPT></tt><tt><br>
</tt><tt> <Cpy:TSP-ID>TspId-11</Cpy:TSP-ID></tt><tt><br>
</tt><tt> <Cpy:lang>DE</Cpy:lang></tt><tt><br>
</tt><tt> </saml2p:Extensions></tt><tt><br>
</tt><tt></saml2p:AuthnRequest></tt><tt><br>
</tt><tt><tt>*********************</tt>******************************************************************
</tt><br>
<br>
If I write unit test doing the whole chaine :<br>
<font color="#009900">Custom Java<br>
--> OpenSAML<br>
--> write XML<br>
--> read XML<br>
--> OpenSAML<br>
--> Custom Java</font><br>
Original & generated instances are "perfectly" equal.<br>
Now, if I do the following process :<br>
<font color="#009900">Custom Java<br>
--> OpenSAML<br>
--> write XML<br>
<font color="#ff0000">--> POST over HTTP(s)</font><br>
--> read XML<br>
--> OpenSAML<br>
--> Custom Java</font><br>
<br>
<br>
The extensions are NOT recognized ? ? ?<br>
17:05:58,079 FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}Min' SchemaType : 'null'
--> org.opensaml.xml.schema.impl.XSAnyImpl@3f8025f5 <br>
17:05:58,080 FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}TSPT' SchemaType : 'null'
--> org.opensaml.xml.schema.impl.XSAnyImpl@763c1864 <br>
17:05:58,080 FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}TSP-ID' SchemaType : 'null'
--> org.opensaml.xml.schema.impl.XSAnyImpl@636589e0 <br>
17:05:58,080 FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:assertion}lang' SchemaType : 'null'
--> org.opensaml.xml.schema.impl.XSAnyImpl@1f3f041b <br>
17:05:58,080 FATAL [engine.util.ExtensionToolBox] Unknown /
unimplemented type. QName :
'{urn:my:Cpy:names:tc:SAML:2.0:protocol}RequestedAttributes'
SchemaType : 'null' -->
org.opensaml.xml.schema.impl.XSAnyImpl@622698a3 <br>
<br>
<br>
\T,<br>
<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
Thomas Lionel SMETS, CISSP (385434)<br>
<b>m :</b> +32 497 44 68 12<br>
<b>ph :</b> +32 2 852 3341<br>
<b>skype :</b> thomas.lionel.smets<br>
<br>
PGP = FDF0 8FB8 4F37 3F79 1011 05AB 0DCE 9BAB 5DD0 0E10
</div>
</body>
</html>