Axis2 141
we are developing a ws based on our customer spec. He gave me a XSD
and the response XML (inner the soap msg) should be in a specific way.
I made it 100% using AXIOM OMElements because I didnt found a way to
do the XS:ATTRIBUTES as is shown below.
<xs:element name="BigObject">
<xs:complexType>
<xs:sequence>
<xs:element ref="SmallObject1"/>
<xs:element ref="SmallObject2" minOccurs="0"/>
<xs:element ref="SmallObject3" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element ref="SmallObject4" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Version" type="xs:string"
use="optional" default="3.3"/>
<xs:attribute name="UnitsOfMeasure"
type="UnitsOfMeasure"
use="optional" default="metric"/>
<xs:attribute name="TrainingModeFlag" type="xs:boolean"
use="optional" default="false"/>
</xs:complexType>
</xs:element>
If I deploy a WS returning objects, how can I do that some attributes
of the BigObject are shown like xs:attribute and not in the
xs:sequence, is this possible or they are crazy asking me this ? is
this standard ???
Rodrigo Asensio
[email protected]
http://www.rodrigoasensio.com
"To err is human, but to really screw up requires the root password."