[ 
https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davanum Srinivas updated AXIS2-2235:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>         Assigned To: Amila Chinthaka Suriarachchi
>         Attachments: BindingTemplate.java, publish_v2.wsdl, ServiceInfo.java, 
> uddi_v2.xsd
>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to