Hi:
According to my- understand , the sdo specification ask for static java
type should only be generate for global types in xsd, and should not
generate for element, is it true?
But using Tuscany, I found a surprising thing. If I using a anonymous
complex type, the generated static java is process like a global element
of xsd. That's if I save the static sdo to xml, the argument provided
specify element name doesn't affect.
But if I using a named complex type, only static sdo is generated for the
global complex type of xsd , and there are no static sdo is generate for
global element of xsd. And if saving the static sdo to xml , the argument
provided specifiy element name will affect;
For example , if xsd like this:
<element name="A">
<complexType>
.....
</complexType>
</element>
A static sdo interface as A.java will generate, but if I save the instance
to xml like follow : save((DataObject)a, "http://test/choice", "B"). The
element's name B will never take affect, and saved xml 's element name is
always be A;
But if xsd like this:
<element name="A" type="ns:AT">
<complexType name="AT">
...
</complexType>
Only global type "AT" is generate to a AT.java , and save the AT 's sdo
instance will take affect if we provide element name.
So why does Tuscany keep this as un-consistency? A bug ? Or there are some
way I can control?
Thanks for any suggest