On Thursday 10 April 2008, mmansoor wrote:
> My SOAP message has an object Foo, which has a body type as anyType. I
> am using JAXB to generate that anyType body.
>
> Now when i look at the Message that is being generated, there is one
> extra tag as :
>
> <ns4:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:ns6="http://my.a.b.c.com/v1"; xmlns="" xsi:type="FooInner">
>
> Any idea how can i remove this extra [xmlns=""] attribute ?.
>
> Thanks

I'd probably need to see the entire xml message as well as the objects 
themselves, but usually jaxb only generates that xmlns="" thing when it 
really should be there.   For example, are you Foo.java and FooInner 
objects in the same package?  Is there a package-info.java for the 
FooInner type that specifies elementFormDefault=QUALIFED?

-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to