You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jake Goulding <go...@vivisimo.com> on 2008/09/19 20:58:36 UTC

[axis2] JAXB does not respect required && fixed attributes?

Hey all, I have the following snippet of schema:

<xs:complexType name="foo" >
   <xs:complexContent>
     <xs:extension base="bar">
       <xs:sequence>
         <xs:element name="user" />
       </xs:sequence>
       <xs:attribute name="animal" fixed="cow" use="required" />
     </xs:extension>
   </xs:complexContent>
</xs:complexType>

However, using Wireshark, I do not see @animal="cow" being sent across 
the network. Using the same WSDL with .NET, I *do* see the attribute.

I can force it by doing something like:

foo.setAnimal(foo.getAnimal());

But that's pretty ugly...

What am I doing wrong?

Thanks!

-Jake

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org