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 Tom Jordahl <to...@macromedia.com> on 2004/10/12 15:47:05 UTC
RE: [jira] Created: (AXIS-1596) enum of QNames generates meaningl
ess names
Scary.
Do not break the JAX-RPC 1.1 TCK please.
--
Tom Jordahl
Macromedia Server Development
> -----Original Message-----
> From: Venkat Reddy [mailto:vreddyp@gmail.com]
> Sent: Tuesday, October 12, 2004 3:51 AM
> To: dims@apache.org
> Cc: axis-dev@ws.apache.org
> Subject: Re: [jira] Created: (AXIS-1596) enum of QNames generates
> meaningless names
>
> Dims,
>
> We are on it. Ashu and I have posted comments. We can implement the
> suggestion from Steve, to replace illegal chars with an underscore,
> though it could mean a minor deviation from JAXRPC spec. We need
> confirmation that its fine to go ahead.
>
> -- Venkat
>
>
> On Tue, 12 Oct 2004 00:54:01 -0400, Davanum Srinivas <da...@gmail.com>
> wrote:
> > Venkat,
> >
> > Is this on your list?
> >
> > -- dims
> >
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: axis-dev@ws.apache.org <ax...@ws.apache.org>
> > Date: Fri, 8 Oct 2004 11:38:51 -0700 (PDT)
> > Subject: [jira] Created: (AXIS-1596) enum of QNames generates
> meaningless names
> > To: axis-dev@ws.apache.org
> >
> > Message:
> >
> > A new issue has been created in JIRA.
> >
> > ---------------------------------------------------------------------
> > View the issue:
> > http://issues.apache.org/jira/browse/AXIS-1596
> >
> > Here is an overview of the issue:
> > ---------------------------------------------------------------------
> > Key: AXIS-1596
> > Summary: enum of QNames generates meaningless names
> > Type: Bug
> >
> > Status: Unassigned
> > Priority: Major
> >
> > Project: Axis
> > Components:
> > WSDL processing
> > Versions:
> > 1.2RC1
> >
> > Assignee:
> > Reporter: Simon Fell
> >
> > Created: Fri, 8 Oct 2004 11:37 AM
> > Updated: Fri, 8 Oct 2004 11:37 AM
> > Environment: WinXP, JDK 1.4.02_5
> >
> > Description:
> > running wsdl2java on a wsdl that includes an enumeration of qnames
> > generates a class with values value1, value2, value3, value4 etc.
> >
> > e.g.
> > <simpleType name="FaultCode">
> > <restriction base="xsd:QName">
> > <enumeration value="fns:API_CURRENTLY_DISABLED"/>
> > <enumeration value="fns:API_DISABLED_FOR_ORG"/>
> > <enumeration value="fns:EXCEEDED_ID_LIMIT"/>
> > <enumeration value="fns:EXCEEDED_LEAD_CONVERT_LIMIT"/>
> > <enumeration value="fns:EXCEEDED_MAX_SIZE_REQUEST"/>
> > <enumeration value="fns:EXCEEDED_QUOTA"/>
> > </restriction>
> > </simpleType>
> >
> > generates a class with
> >
> > public static final javax.xml.namespace.QName _value1 =
> >
> javax.xml.namespace.QName.valueOf("{urn:fault.enterprise.soap.sforce.com}A
> PI_CURRENTLY_DISABLED");
> > public static final javax.xml.namespace.QName _value2 =
> >
> javax.xml.namespace.QName.valueOf("{urn:fault.enterprise.soap.sforce.com}A
> PI_DISABLED_FOR_ORG");
> > public static final javax.xml.namespace.QName _value3 =
> >
> javax.xml.namespace.QName.valueOf("{urn:fault.enterprise.soap.sforce.com}E
> XCEEDED_ID_LIMIT");
> > public static final javax.xml.namespace.QName _value4 =
> >
> javax.xml.namespace.QName.valueOf("{urn:fault.enterprise.soap.sforce.com}E
> XCEEDED_LEAD_CONVERT_LIMIT");
> > public static final javax.xml.namespace.QName _value5 =
> >
> javax.xml.namespace.QName.valueOf("{urn:fault.enterprise.soap.sforce.com}E
> XCEEDED_MAX_SIZE_REQUEST");
> > public static final javax.xml.namespace.QName _value6 =
> >
> javax.xml.namespace.QName.valueOf("{urn:fault.enterprise.soap.sforce.com}E
> XCEEDED_QUOTA");
> >
> > public static final FaultCode value1 = new FaultCode(_value1);
> > public static final FaultCode value2 = new FaultCode(_value2);
> > public static final FaultCode value3 = new FaultCode(_value3);
> > public static final FaultCode value4 = new FaultCode(_value4);
> > public static final FaultCode value5 = new FaultCode(_value5);
> > public static final FaultCode value6 = new FaultCode(_value6);
> >
> > names should be generated from the qname value like a string enumeration
> does.
> >
> > ---------------------------------------------------------------------
> > JIRA INFORMATION:
> > This message is automatically generated by JIRA.
> >
> > If you think it was sent incorrectly contact one of the administrators:
> > http://issues.apache.org/jira/secure/Administrators.jspa
> >
> > If you want more information on JIRA, or have a bug to report see:
> > http://www.atlassian.com/software/jira
> >
> >
> > --
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> >