axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2235) WSDL2Java ignore required attributes in xsd
Date Fri, 16 Mar 2007 05:48:09 GMT

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

Amila Chinthaka Suriarachchi commented on AXIS2-2235:
-----------------------------------------------------

I have put the choice support to adb now. Now you can try with adb. yes you can try with xmlbeans
and jaxbri as well. 

> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message