Issue with xmltooling and attribute namespace

Massimiliano Masi massimiliano.masi at gmail.com
Tue Feb 25 09:13:56 EST 2014


Hi All,

I have two different eclipse projects, using the same code. I extended
XMLTooling 1.4.1 in order to have custom WS-Trust elements.

In project A, my XMLObject is unmarshalled as:

        <ts:ClaimType xmlns="urn:tiani-spirit:ts"
xmlns:ts="urn:tiani-spirit:ts" xmlns:ns0="urn:tiani-spirit:ts"
ns0:DataType="http://www.w3.org/2001/XMLSchema#string"
xmlns:ns1="urn:tiani-spirit:ts"
ns1:name="urn:tiani-spirit:bes:2013:claims:tr-type">


<ts:ClaimValue>urn:elga:trtypes:Ambulanter_Kontakt</ts:ClaimValue>

        </ts:ClaimType>


while in project B is:

   <ts:ClaimType xmlns:ts="urn:tiani-spirit:ts" xmlns="urn:tiani-spirit:ts"
DataType="http://www.w3.org/2001/XMLSchema#string"
name="urn:tiani-spirit:bes:2013:claims:tr-type">


<ts:ClaimValue>urn:elga:trtypes:Ambulanter_Kontakt</ts:ClaimValue>

        </ts:ClaimType>

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:

  <xs:element name="ClaimType" type="ts:ClaimTypeType"/>

    <xs:complexType name="ClaimTypeType">

        <xs:attribute name="DataType" type="xs:anyURI" use="required"  />

        <xs:attribute name="name" type="xs:anyURI" use="required" />

    </xs:complexType>


Since the code (from project A) is the same, it must be a problem of
libraries. Do you have suggestions?

Thanks,

    Massimiliano
-- 
Massimiliano Masi

http://www.mascanc.net/~max
ᐧ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20140225/8ec9e4a8/attachment.html 


More information about the dev mailing list