I have the following xsd
<xsd:complexType name="myID">
<xsd:choice>
<xsd:element name="testID" type="priv:testID"/>
<xsd:sequence>
<xsd:element name="newID" type="priv:newID"/>
<xsd:element name="testID" type="priv:testID" minOccurs="0"/>
</xsd:sequence>
</xsd:choice>
</xsd:complexType>
Everything is under priv
namespace. The problem is that it looks like that myID
is a union. It might be a testID
or a sequence with newID
and testID
. When I compile it with wsdl2h
from gsoap
I am taking the message:
Note:
<xs:choice>
with embedded<xs:sequence>
or<xs:group>
prevents the use of a union
Is the above XSD correct?