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 "Frederick N. Brier" <fb...@omnilinksystems.com> on 2006/11/20 15:58:37 UTC
OpenGIS GML type generates "extends double[]"
Jason Kahler posted a question back in March, but I did not see a
resolution to his problem. I believe he was attempting to create a web
service based on the OpenGIS GML DirectPositionType, which I have
included an abbreviated (removed the documentation) version below:
<complexType name="DirectPositionType">
<annotation>
<documentation>...</documentation>
</annotation>
<simpleContent>
<extension base="gml:doubleList">
<attribute name="srsName" type="anyURI" use="optional">
<annotation>
<documentation>...</documentation>
</annotation>
</attribute>
<attribute name="dimension" type="positiveInteger" use="optional">
<annotation>
<documentation>...</documentation>
</annotation>
</attribute>
</extension>
</simpleContent>
</complexType>
<simpleType name="doubleList">
<annotation>
<documentation></documentation>
</annotation>
<list itemType="double"/>
</simpleType>
This is what I am trying to do. However the generated class extends
double[] just like his. Is there a resolution to this? A workaround?
Thank you.
Frederick N. Brier
List: axis-user
Subject: Re: WSDLtoJava generates bizare code
From: "Anne Thomas Manes" <atmanes () gmail ! com>
Date: 2006-03-22 20:48:02
Show us the WSDL...
On 3/22/06, Kahler, Jason J (US SSA) <ja...@baesystems.com> wrote:
>
>
> When I run wsdl2java on a certain wsdl file is generates code like this:
>
>
> public class VectorType extends double[] implements
> java.io.Serializable {
> private org.apache.axis.types.PositiveInteger dimension; //
> attribute
>
> public VectorType() {
> }
>
> // Simple Types must have a String constructor
> public VectorType(double[] _value) {
> super(_value);
> }
>
> Is it even legal to extend double[] ?
>
> And of course there is no Object constructor that takes a double[]. What
> is going on here?
>
>
> Thanks;
> Jay Kahler
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org