<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 &amp;
    unmarshalled :<br>
    <tt><br>
    </tt><tt>********************** Slightly anonymized &amp; beautyfied
      ********************** </tt><tt><br>
    </tt><tt>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</tt><tt><br>
    </tt><tt>&lt;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"&gt;</tt><tt><br>
    </tt><tt>  &lt;saml2p:Extensions&gt;</tt><tt><br>
    </tt><tt>    &lt;Cpy:Min&gt;10&lt;/Cpy:Min&gt;</tt><tt><br>
    </tt><tt>    &lt;Cpy:TSPT&gt;TspType-11&lt;/Cpy:TSPT&gt;</tt><tt><br>
    </tt><tt>    &lt;Cpy:TSP-ID&gt;TspId-11&lt;/Cpy:TSP-ID&gt;</tt><tt><br>
    </tt><tt>    &lt;Cpy:lang&gt;DE&lt;/Cpy:lang&gt;</tt><tt><br>
    </tt><tt>  &lt;/saml2p:Extensions&gt;</tt><tt><br>
    </tt><tt>&lt;/saml2p:AuthnRequest&gt;</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>
          --&gt; OpenSAML<br>
              --&gt; write XML<br>
                  --&gt; read XML<br>
                      --&gt; OpenSAML<br>
                          --&gt; Custom Java</font><br>
    Original &amp; generated instances are "perfectly" equal.<br>
    Now, if I do the following process :<br>
    <font color="#009900">Custom Java<br>
          --&gt; OpenSAML<br>
              --&gt; write XML<br>
                  <font color="#ff0000">--&gt; POST over HTTP(s)</font><br>
                      --&gt; read XML<br>
                          --&gt; OpenSAML<br>
                              --&gt; 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'
    --&gt; 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'
    --&gt; 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'
    --&gt; 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'
    --&gt; 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' --&gt;
    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>