users@jax-ws.java.net

Re: JAXB xsi:type problem

From: Ingo Siebert <ingo.siebert_at_cas.de>
Date: Fri, 21 Jul 2006 08:54:11 +0200

Hi Dinko!

>> <ns2:createObjectResponse xmlns:ns2="http://schema.eim.de"
>> xmlns:ns3="http://faults.eim.de">
>> <ns2ataObject xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
> [...]
>
> This doesn't look right -- I guess you need "xmlns:xsi" here.

Your are right, i copied it from a forum post, but the question is still
without answer. The forum converted :x of xmlns:xsi to a smily and
destroyed the xml code. :(
The same problem with "xmlns:Data...", :D was also a smily. That's the
correct XML code:

<ns2:createObjectResponse xmlns:ns2="http://schema.eim.de"
xmlns:ns3="http://faults.eim.de">
   <ns2:DataObject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns2:Appointment">
     <ns2:id xsi:nil="true"/>
     <ns2:keyword xsi:nil="true"/>
     <ns2:startDate xsi:nil="true"/>
     <ns2:endDate xsi:nil="true"/>
   </ns2:DataObject>
</ns2:createObjectResponse>


Do you have any idea what's wrong?
I have some cases in which the "type" attribute is working, but some
cases where the type attribute is ignored. I doesn't see a system behind it.

Cheers,

Ingo