users@jax-ws.java.net

Re: JAXB xsi:type problem

From: Dinko Tenev <dinko.tenev_at_gmail.com>
Date: Fri, 21 Jul 2006 12:59:35 +0300

Hi,

On 7/21/06, Ingo Siebert <ingo.siebert_at_cas.de> wrote:
> 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.

I'm out of particular suggestions, but if the above is the case, then
maybe it would help to scrutinize the differences between the cases
that work and those that don't.


Cheers,

Dinko