<div dir="ltr">Hi All, <div><br></div><div>I have two different eclipse projects, using the same code. I extended XMLTooling 1.4.1 in order to have custom WS-Trust elements. </div><div><br></div><div>In project A, my XMLObject is unmarshalled as: </div>
<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco"> <ts:ClaimType xmlns="urn:tiani-spirit:ts" xmlns:ts="urn:tiani-spirit:ts" xmlns:ns0="urn:tiani-spirit:ts" ns0:DataType="<a href="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#string</a>" xmlns:ns1="urn:tiani-spirit:ts" ns1:name="urn:tiani-spirit:bes:2013:claims:tr-type"></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"> <ts:ClaimValue>urn:elga:trtypes:Ambulanter_Kontakt</ts:ClaimValue></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"> </ts:ClaimType></p><p style="margin:0px;font-size:11px;font-family:Monaco"><br></p></div><div>while in project B is: </div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco">
<ts:ClaimType xmlns:ts="urn:tiani-spirit:ts" xmlns="urn:tiani-spirit:ts" DataType="<a href="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#string</a>" name="urn:tiani-spirit:bes:2013:claims:tr-type"></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"> <ts:ClaimValue>urn:elga:trtypes:Ambulanter_Kontakt</ts:ClaimValue></p>
<p style="margin:0px;font-size:11px;font-family:Monaco"> </ts:ClaimType></p><div><br></div><div>Project A is good, since it declares a namespace for the attributes DataType and Name, while in project B such attribtues are not set. This violates this schema definition: </div>
<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)"><</span><span style="color:rgb(78,145,146)">xs:element</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>"ClaimType"<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">type</span><span style="color:rgb(0,0,0)">=</span>"ts:ClaimTypeType"<span style="color:rgb(0,145,147)">/></span></p>
<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)"><</span><span style="color:rgb(78,145,146)">xs:complexType</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>"ClaimTypeType"<span style="color:rgb(0,145,147)">></span></p>
<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)"><</span><span style="color:rgb(78,145,146)">xs:attribute</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>"DataType"<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">type</span><span style="color:rgb(0,0,0)">=</span>"xs:anyURI"<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">use</span><span style="color:rgb(0,0,0)">=</span>"required"<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)">/></span></p>
<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)"><</span><span style="color:rgb(78,145,146)">xs:attribute</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>"name"<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">type</span><span style="color:rgb(0,0,0)">=</span>"xs:anyURI"<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">use</span><span style="color:rgb(0,0,0)">=</span>"required"<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)">/></span></p>
<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)"></</span>xs:complexType<span style="color:rgb(0,145,147)">></span></p>
</div><div><br></div><div><br></div><div>Since the code (from project A) is the same, it must be a problem of libraries. Do you have suggestions?</div><div><br></div><div>Thanks, </div><div><br></div><div> Massimiliano</div>
-- <br>Massimiliano Masi<br><br><a href="http://www.mascanc.net/~max">http://www.mascanc.net/~max</a>
</div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px; max-height:0px;" src="https://mailfoogae.appspot.com/t?sender=abWFzc2ltaWxpYW5vLm1hc2lAZ21haWwuY29t&type=zerocontent&guid=d7eabb40-bd84-4681-bbb6-2c7bf7096233"><font color="#ffffff" size="1">ᐧ</font></div>
</div>