I have a WSDL with the following content:
...
<xsd:complexType name="Scenario" mixed="true">
    <xsd:sequence>
        <xsd:element name="Description" type="xsd:anyURI" minOccurs="0"/>
        <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded"
processContents="lax"/>
    </xsd:sequence>
    <xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:complexType>
...

After I generated my classes and deployed the service I checked the
interface in my browser (http://localhost/myService?wsdl). Much to my
surprise it looked considerably different: a "choice" has been added,
processContents is changed, etc.

...
<xsd:complexType mixed="true" name="Scenario">
    <xsd:sequence>
        <xsd:choice maxOccurs="unbounded" minOccurs="0">
            <xsd:element name="Description" type="xsd:string"/>
            <xsd:any namespace="##other" processContents="lax"/>
        <xsd:choice>
    </xsd:sequence>
    <xsd:anyAttribute namespace="##other" processContents="skip"/>
</xsd:complexType>
...

Is this a bug - or a feature? Why is there now an additional "choice"?

Reply via email to