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:05 UTC

[jira] Created: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

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


[jira] Updated: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Federica Ciotti (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Federica Ciotti updated AXIS2-2235:
-----------------------------------

    Attachment: uddi_v2.xsd

> 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: BindingTemplate.java, 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


[jira] Updated: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Federica Ciotti (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Federica Ciotti updated AXIS2-2235:
-----------------------------------

    Attachment: BindingTemplate.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: BindingTemplate.java, 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


[jira] Commented: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475266 ] 

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

This is a known issue with adb. It still does not support choice elements inside the sequence element.

> 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: 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


[jira] Commented: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Updated: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Federica Ciotti (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Updated: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Federica Ciotti (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Federica Ciotti updated AXIS2-2235:
-----------------------------------

    Attachment: publish_v2.wsdl

> 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: 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


[jira] Resolved: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-2235.
-------------------------------------------------

    Resolution: Fixed

now adb supports Choice

> 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


[jira] Commented: (AXIS2-2235) WSDL2Java ignore required attributes in xsd

Posted by "Federica Ciotti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475282 ] 

Federica Ciotti commented on AXIS2-2235:
----------------------------------------

Thank you Amila, 
what do you suggest in order to address this issue? I was thinking about jibx but my wsdl is too complex to make it possible to set up all the things in a reasonable time. 
Maybe xmlbean be a solution?

 

> 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: 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