Hi,

a server-side xml-schema used by our wsdl makes use of "anyAttribute" like
this:

...
<xs:element name="Header" ref="Header" minOccurs="0"/>
...
 <xs:element name="Header">
  <xs:complexType>
   <xs:anyAttribute processContents="skip"/>
  </xs:complexType>
 </xs:element>
...

Generating a client-implementation using wsdl2java of Axis 1.1 results in a
Header-class without explicit setter- and getter-methods like
setAnyAttributes() and getAnyAttributes(). It seams, that Axis does not
support "anyAttribute" in a scenario like this.

In another project we successfully used "any" to support any sub-elements
within "Attributes" like this:

...
<xs:element name="Attributes">
 <xs:complexType>
  <xs:sequence>
   <xs:any maxOccurs="unbounded"/>
  </xs:sequence>
 </xs:complexType>
</xs:element>
...

So Axis generated an Attributes-class with the methods set_any() and
get_any() as expected.

Do you have any hints for solving the problem when using "anyAttribute"?
Maybe any (minor) changes in the xml-schema would help?

Any help greatly appreciated,
Harald

Reply via email to