You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by techycee <ch...@yahoo.com> on 2009/11/18 23:58:08 UTC

WSDL2Axis generation of stub for enumeration type

I have WSDL which has some enumeration types e.g.
			<xs:simpleType name="ThresholdType">
				<xs:restriction base="xs:positiveInteger">
					<xs:minInclusive value="5" />
					<xs:maxInclusive value="750" />
				</xs:restriction>
			</xs:simpleType>

			<xs:simpleType name="EngineIntensityType">
				<xs:restriction base="xs:string">
					<xs:enumeration value="Exact" />
					<xs:enumeration value="Close" />
					<xs:enumeration value="Extensive" />
				</xs:restriction>
			</xs:simpleType>

The stub which is generated using Axis2 is having problems. It is trying to
use
org.apache.axis2.databinding.utils.ConverterUtil.convertToEngineIntensityType
which is not a valid method at all. 
How do i eliminate this problem without changing WSDL or the stub? Is there
a specific way enumeration types should be handled during stub generation?
Also i am generating it using ADB binding.


-- 
View this message in context: http://old.nabble.com/WSDL2Axis-generation-of-stub-for-enumeration-type-tp26417347p26417347.html
Sent from the Axis - User mailing list archive at Nabble.com.


Re: WSDL2Axis generation of stub for enumeration type

Posted by Amila Suriarachchi <am...@gmail.com>.
Please log a jira with your wsdl or a sample wsdl to reproduce the issue.

thanks,
Amila.

On Thu, Nov 19, 2009 at 4:28 AM, techycee <ch...@yahoo.com> wrote:

>
> I have WSDL which has some enumeration types e.g.
>                        <xs:simpleType name="ThresholdType">
>                                <xs:restriction base="xs:positiveInteger">
>                                        <xs:minInclusive value="5" />
>                                        <xs:maxInclusive value="750" />
>                                </xs:restriction>
>                        </xs:simpleType>
>
>                        <xs:simpleType name="EngineIntensityType">
>                                <xs:restriction base="xs:string">
>                                        <xs:enumeration value="Exact" />
>                                        <xs:enumeration value="Close" />
>                                        <xs:enumeration value="Extensive" />
>                                </xs:restriction>
>                        </xs:simpleType>
>
> The stub which is generated using Axis2 is having problems. It is trying to
> use
>
> org.apache.axis2.databinding.utils.ConverterUtil.convertToEngineIntensityType
> which is not a valid method at all.
> How do i eliminate this problem without changing WSDL or the stub? Is there
> a specific way enumeration types should be handled during stub generation?
> Also i am generating it using ADB binding.
>
>
> --
> View this message in context:
> http://old.nabble.com/WSDL2Axis-generation-of-stub-for-enumeration-type-tp26417347p26417347.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/