Hi ,
I am newly using Axis2 to generate stubs to invoke a web service.
When I use wsdl2java with the unpack option, I get autogenerated code for the
XSD referenced in the WSDL file. However it turns out that, for one of my
complex types, in the XSD, there is no type specified for a particular
attribute.
<xs:complexType>
<xs:sequence>
<xs:element name="Status" type="ns1:Status"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="ID"/> <!-- No Type Specified -->
</xs:complexType>
as in for example the ID attribute. While autogenerating the code, I get a
warning
[WARN] No attribute type has defined to the Attribute ID
The generated stub, does not provide a setter method for the particular
attribute. I was assuming a default string type would be assumed, but could not
find any way of setting the attribute value, using the generated stub.
I don't have rights to change the XSD, so I would like to workaround the
problem at my side, but don't know how.
Any help in this regard would be greatly appreciated.
Thanks,
Srijith.