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 "McMullin, Gregg E." <GR...@saic.com> on 2006/01/04 19:22:35 UTC
RE: -H wsdl2java option and enumerations
Hi and Happy New Year:
Sorry to repost this but thought I'd give it a try one more
time. Has anyone else run into this problem, and if so how
was it resolved? I've thought about building the _Helper.java
classes by extracting info from the generated bean, but am not
exactly sure what items should be extracted. Any help would be
greatly appreciated.
thanks,
Gregg
-----Original Message-----
From: GREGG.E.MCMULLIN@saic.com [mailto:GREGG.E.MCMULLIN@saic.com]
Sent: Tuesday, December 20, 2005 10:35 AM
To: axisUser
Subject: -H wsdl2java option and enumerations
Hi:
I've been using the -H option when running the wsdl2java tool. I've
noticed that not all beans have _Helper.java classes generated for
them. Specifically, it does not appear to work for enumerations.
For example the following schema/wsdl
<xsd:simpleType name="DataRepresentation">
<xsd:annotation>
<xsd:documentation>Supported values</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="spatial"/>
<xsd:enumeration value="time"/>
<xsd:enumeration value="point"/>
<xsd:enumeration value="profile"/>
</xsd:restriction>
</xsd:simpleType>
produces only a bean named DataRepresentation.java
Besides producing the "serialization/deserialization" info internal
to the DataRepresentation bean, it also has serialization/deserialization
issues at runtime. I'm using 1.2.1, but have tried with 1.3 with the
same results. I'm currently also using the -T 1.3 option. Any ideas?
thanks,
Gregg
Re: -H wsdl2java option and enumerations
Posted by Davanum Srinivas <da...@gmail.com>.
Folks,
Please submit a "svn diff" against latest SVN.
thanks,
dims
On 1/4/06, Dies Koper <di...@jp.fujitsu.com> wrote:
> Hello Greg,
>
> It is a known bug:
> http://issues.apache.org/jira/browse/AXIS-2151
>
> Someone even submitted a patch. It looks like it did not get committed.
>
> Regards,
> Dies
>
>
> McMullin, Gregg E. wrote:
> > Hi and Happy New Year:
> >
> > Sorry to repost this but thought I'd give it a try one more
> > time. Has anyone else run into this problem, and if so how
> > was it resolved? I've thought about building the _Helper.java
> > classes by extracting info from the generated bean, but am not
> > exactly sure what items should be extracted. Any help would be
> > greatly appreciated.
> >
> > thanks,
> >
> > Gregg
> >
> >
> > -----Original Message-----
> > From: GREGG.E.MCMULLIN@saic.com [mailto:GREGG.E.MCMULLIN@saic.com]
> > Sent: Tuesday, December 20, 2005 10:35 AM
> > To: axisUser
> > Subject: -H wsdl2java option and enumerations
> >
> > Hi:
> >
> > I've been using the -H option when running the wsdl2java tool. I've
> > noticed that not all beans have _Helper.java classes generated for
> > them. Specifically, it does not appear to work for enumerations.
> >
> > For example the following schema/wsdl
> >
> > <xsd:simpleType name="DataRepresentation">
> > <xsd:annotation>
> > <xsd:documentation>Supported values</xsd:documentation>
> > </xsd:annotation>
> > <xsd:restriction base="xsd:string">
> > <xsd:enumeration value="spatial"/>
> > <xsd:enumeration value="time"/>
> > <xsd:enumeration value="point"/>
> > <xsd:enumeration value="profile"/>
> > </xsd:restriction>
> > </xsd:simpleType>
> >
> > produces only a bean named DataRepresentation.java
> >
> > Besides producing the "serialization/deserialization" info internal
> > to the DataRepresentation bean, it also has serialization/deserialization
> > issues at runtime. I'm using 1.2.1, but have tried with 1.3 with the
> > same results. I'm currently also using the -T 1.3 option. Any ideas?
> >
> > thanks,
> >
> > Gregg
> >
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: -H wsdl2java option and enumerations
Posted by Dies Koper <di...@jp.fujitsu.com>.
Hello Greg,
It is a known bug:
http://issues.apache.org/jira/browse/AXIS-2151
Someone even submitted a patch. It looks like it did not get committed.
Regards,
Dies
McMullin, Gregg E. wrote:
> Hi and Happy New Year:
>
> Sorry to repost this but thought I'd give it a try one more
> time. Has anyone else run into this problem, and if so how
> was it resolved? I've thought about building the _Helper.java
> classes by extracting info from the generated bean, but am not
> exactly sure what items should be extracted. Any help would be
> greatly appreciated.
>
> thanks,
>
> Gregg
>
>
> -----Original Message-----
> From: GREGG.E.MCMULLIN@saic.com [mailto:GREGG.E.MCMULLIN@saic.com]
> Sent: Tuesday, December 20, 2005 10:35 AM
> To: axisUser
> Subject: -H wsdl2java option and enumerations
>
> Hi:
>
> I've been using the -H option when running the wsdl2java tool. I've
> noticed that not all beans have _Helper.java classes generated for
> them. Specifically, it does not appear to work for enumerations.
>
> For example the following schema/wsdl
>
> <xsd:simpleType name="DataRepresentation">
> <xsd:annotation>
> <xsd:documentation>Supported values</xsd:documentation>
> </xsd:annotation>
> <xsd:restriction base="xsd:string">
> <xsd:enumeration value="spatial"/>
> <xsd:enumeration value="time"/>
> <xsd:enumeration value="point"/>
> <xsd:enumeration value="profile"/>
> </xsd:restriction>
> </xsd:simpleType>
>
> produces only a bean named DataRepresentation.java
>
> Besides producing the "serialization/deserialization" info internal
> to the DataRepresentation bean, it also has serialization/deserialization
> issues at runtime. I'm using 1.2.1, but have tried with 1.3 with the
> same results. I'm currently also using the -T 1.3 option. Any ideas?
>
> thanks,
>
> Gregg
>