You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Federica Ciotti (JIRA)" <ji...@apache.org> on 2007/02/21 19:08:06 UTC
[jira] Updated: (AXIS2-2235) WSDL2Java ignore required attributes
in xsd
[ https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Federica Ciotti updated AXIS2-2235:
-----------------------------------
Attachment: ServiceInfo.java
> WSDL2Java ignore required attributes in xsd
> -------------------------------------------
>
> Key: AXIS2-2235
> URL: https://issues.apache.org/jira/browse/AXIS2-2235
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: wsdl
> Affects Versions: 1.1.1
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1
> Reporter: Federica Ciotti
> Attachments: ServiceInfo.java
>
>
> The java class generated for the element hasn't the requires field serviceKey and BusinessKey.
> This happen for oher xml element similar to this one.
> <xsd:element name="serviceInfo" type="uddi:serviceInfo"/>
> <xsd:complexType name="serviceInfo">
> <xsd:sequence>
> <xsd:element ref="uddi:name" minOccurs="0" maxOccurs="unbounded"/>
> </xsd:sequence>
> <xsd:attribute name="serviceKey" type="uddi:serviceKey" use="required"/>
> <xsd:attribute name="businessKey" type="uddi:businessKey" use="required"/>
> </xsd:complexType>
> In the following case the choice element and the two attributes are completly ignored in the generated java class:
> <xsd:element name="bindingTemplate" type="uddi:bindingTemplate"/>
> <xsd:complexType name="bindingTemplate">
> <xsd:sequence>
> <xsd:element ref="uddi:description" minOccurs="0" maxOccurs="unbounded"/>
> <xsd:choice>
> <xsd:element ref="uddi:accessPoint"/>
> <xsd:element ref="uddi:hostingRedirector"/>
> </xsd:choice>
> <xsd:element ref="uddi:tModelInstanceDetails"/>
> </xsd:sequence>
> <xsd:attribute name="serviceKey" type="uddi:serviceKey" use="optional"/>
> <xsd:attribute name="bindingKey" type="uddi:bindingKey" use="required"/>
> </xsd:complexType>
> I tried to use the latest snapshot but, since my wsdl hasn't service element, I get a generation error.
> Attached are the two java classes of the examples showed and the wsdl.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org