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 Max Shaposhnik <uy...@yahoo.com> on 2007/07/09 16:41:13 UTC
Axis 1.4 WSDL4J wrong arguments sequence in generated classes
Hello,
trying to use Axis 1.4 for implementing some web service, but
got compile error as follows:
part of wsdl schema:
~~~~~~~~~~~~~~~~~~~~~~~~~~
<complexType name="MimeResponse">
<sequence>
<element name="useCachedItem" type="xsd:boolean"
default="false" minOccurs="0"/>
<element name="mimeType" type="xsd:string"
minOccurs="0"/>
<element name="itemString" type="xsd:string"
minOccurs="0"/>
<element name="itemBinary" type="xsd:base64Binary"
minOccurs="0"/>
<element name="locale" type="xsd:string"
minOccurs="0"/>
<element name="requiresRewriting" type="xsd:boolean"
default="false" minOccurs="0"/>
<element name="cacheControl" type="types:CacheControl"
minOccurs="0"/>
<element name="extensions" type="types:Extension"
minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="ccppProfileWarning" type="xsd:string"
use="optional"/>
</complexType>
<element name="MimeResponse" type="types:MimeResponse"/>
<complexType name="MarkupContext">
<complexContent>
<extension base="types:MimeResponse">
<sequence>
<element name="preferredTitle" type="xsd:string"
minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="MarkupContext" type="types:MarkupContext"/>
~~~~~~~~~~~~~~~~~~~~~~~~
Output code ( look for super() constructor ):
~~~~~~~~~~~~~~~~~~~~~~~~
public class MarkupContext extends
org.mycompany.services.wsrp.type.MimeResponse implements
java.io.Serializable {
private java.lang.String preferredTitle;
public MarkupContext() {
}
public MarkupContext(
java.lang.String ccppProfileWarning,
java.lang.Boolean useCachedItem,
java.lang.String mimeType,
java.lang.String itemString,
byte[] itemBinary,
java.lang.String locale,
java.lang.Boolean requiresRewriting,
org.exoplatform.services.wsrp.type.CacheControl cacheControl,
org.exoplatform.services.wsrp.type.Extension[] extensions,
java.lang.String preferredTitle) {
super(
ccppProfileWarning,
useCachedItem,
mimeType,
itemString,
itemBinary,
locale,
requiresRewriting,
cacheControl,
extensions);
this.preferredTitle = preferredTitle;
}
and here is MimeResponse constructor:
public MimeResponse(
java.lang.Boolean useCachedItem,
java.lang.String mimeType,
java.lang.String itemString,
byte[] itemBinary,
java.lang.String locale,
java.lang.Boolean requiresRewriting,
org.exoplatform.services.wsrp.type.CacheControl cacheControl,
org.exoplatform.services.wsrp.type.Extension[] extensions,
java.lang.String ccppProfileWarning) {
this.useCachedItem = useCachedItem;
this.mimeType = mimeType;
this.itemString = itemString;
this.itemBinary = itemBinary;
this.locale = locale;
this.requiresRewriting = requiresRewriting;
this.cacheControl = cacheControl;
this.extensions = extensions;
this.ccppProfileWarning = ccppProfileWarning;
}
~~~~~~~~~~~~~~~~~~~~~~~~
As you can see, the sequence of arguments is not match. Is it inheritance
problem?
Tnx for any suggestions.
--
View this message in context: http://www.nabble.com/Axis-1.4-WSDL4J-wrong-arguments-sequence-in-generated-classes-tf4049803.html#a11503152
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis 1.4 WSDL4J wrong arguments sequence in generated classes
Posted by Alexey Zavizionov <al...@gmail.com>.
Hi,
WSDL2Java generates uncompilable code.
Classes that inherite from some parent classes have the constructor
parameters in the wrong order.
Example:
I have the exeption
/home/alexey/java/eXoProjects/portlet-container/trunk/component/plugins/wsrp2/target/generated/org/exoplatform/services/wsrp2/type/MarkupContext.java:[31,8]
cannot find symbol
symbol : constructor MimeResponse(java.lang.String,java.lang.Boolean)
location: class org.exoplatform.services.wsrp2.type.MimeResponse
Parent:
<complexType name="MimeResponse">
<sequence>
<element name="useCachedItem" type="xsd:boolean"
default="false" minOccurs="0"/>
</sequence>
<attribute name="ccppProfileWarning" type="xsd:string"
use="optional"/>
</complexType>
<element name="MimeResponse" type="types:MimeResponse"/>
public class MimeResponse implements java.io.Serializable {
public MimeResponse(
java.lang.Boolean useCachedItem,
java.lang.String ccppProfileWarning) {
this.useCachedItem = useCachedItem;
this.ccppProfileWarning = ccppProfileWarning;
}
Child:
<complexType name="MarkupContext">
<complexContent>
<extension base="types:MimeResponse">
<sequence>
<element name="preferredTitle" type="xsd:string"
minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
<element name="MarkupContext" type="types:MarkupContext"/>
public class MarkupContext extends
org.exoplatform.services.wsrp2.type.MimeResponse implements
java.io.Serializable {
public MarkupContext(
java.lang.String ccppProfileWarning,
java.lang.Boolean useCachedItem,
java.lang.String preferredTitle) {
super(
ccppProfileWarning,
useCachedItem);
this.preferredTitle = preferredTitle;
}
Alexey.
On Jan 24, 2008 6:27 PM, Alexey Zavizionov <al...@gmail.com> wrote:
> Hi,
>
> Please take a look at the issue.
> That blocks my work!
>
> Thaks,
> Alexey
>
> On Jul 10, 2007 10:05 AM, Alexey Zavizionov
>
> <al...@exoplatform.com.ua> wrote:
> > Looks like a bug in axis1 1.4
> >
> > The class MimeResponse generated correctly with attribute
> > "ccppProfileWarning" as last parameter in constructor, but
> > MarkupContext generated wrong, IMHO, because MarkupContext call super
> > constructor with first (should be last) parameter "ccppProfileWarning"
> >
> > Any approvement from axis team?
> >
> > Regards,
> > Alexey
> >
> >
> > On 7/9/07, Max Shaposhnik <uy...@yahoo.com> wrote:
> > >
> > > Hello,
> > > trying to use Axis 1.4 for implementing some web service, but
> > > got compile error as follows:
> > >
> > > part of wsdl schema:
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > <complexType name="MimeResponse">
> > > <sequence>
> > > <element name="useCachedItem" type="xsd:boolean"
> > > default="false" minOccurs="0"/>
> > > <element name="mimeType" type="xsd:string"
> > > minOccurs="0"/>
> > > <element name="itemString" type="xsd:string"
> > > minOccurs="0"/>
> > > <element name="itemBinary" type="xsd:base64Binary"
> > > minOccurs="0"/>
> > > <element name="locale" type="xsd:string"
> > > minOccurs="0"/>
> > > <element name="requiresRewriting" type="xsd:boolean"
> > > default="false" minOccurs="0"/>
> > > <element name="cacheControl" type="types:CacheControl"
> > > minOccurs="0"/>
> > > <element name="extensions" type="types:Extension"
> > > minOccurs="0" maxOccurs="unbounded"/>
> > > </sequence>
> > > <attribute name="ccppProfileWarning" type="xsd:string"
> > > use="optional"/>
> > > </complexType>
> > > <element name="MimeResponse" type="types:MimeResponse"/>
> > >
> > > <complexType name="MarkupContext">
> > > <complexContent>
> > > <extension base="types:MimeResponse">
> > > <sequence>
> > > <element name="preferredTitle" type="xsd:string"
> > > minOccurs="0"/>
> > > </sequence>
> > > </extension>
> > > </complexContent>
> > > </complexType>
> > > <element name="MarkupContext" type="types:MarkupContext"/>
> > > ~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > >
> > >
> > > Output code ( look for super() constructor ):
> > > ~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > > public class MarkupContext extends
> > > org.mycompany.services.wsrp.type.MimeResponse implements
> > > java.io.Serializable {
> > > private java.lang.String preferredTitle;
> > >
> > > public MarkupContext() {
> > > }
> > >
> > > public MarkupContext(
> > > java.lang.String ccppProfileWarning,
> > > java.lang.Boolean useCachedItem,
> > > java.lang.String mimeType,
> > > java.lang.String itemString,
> > > byte[] itemBinary,
> > > java.lang.String locale,
> > > java.lang.Boolean requiresRewriting,
> > > org.exoplatform.services.wsrp.type.CacheControl cacheControl,
> > > org.exoplatform.services.wsrp.type.Extension[] extensions,
> > > java.lang.String preferredTitle) {
> > > super(
> > > ccppProfileWarning,
> > > useCachedItem,
> > > mimeType,
> > > itemString,
> > > itemBinary,
> > > locale,
> > > requiresRewriting,
> > > cacheControl,
> > > extensions);
> > > this.preferredTitle = preferredTitle;
> > > }
> > >
> > >
> > >
> > > and here is MimeResponse constructor:
> > >
> > > public MimeResponse(
> > > java.lang.Boolean useCachedItem,
> > > java.lang.String mimeType,
> > > java.lang.String itemString,
> > > byte[] itemBinary,
> > > java.lang.String locale,
> > > java.lang.Boolean requiresRewriting,
> > > org.exoplatform.services.wsrp.type.CacheControl cacheControl,
> > > org.exoplatform.services.wsrp.type.Extension[] extensions,
> > > java.lang.String ccppProfileWarning) {
> > > this.useCachedItem = useCachedItem;
> > > this.mimeType = mimeType;
> > > this.itemString = itemString;
> > > this.itemBinary = itemBinary;
> > > this.locale = locale;
> > > this.requiresRewriting = requiresRewriting;
> > > this.cacheControl = cacheControl;
> > > this.extensions = extensions;
> > > this.ccppProfileWarning = ccppProfileWarning;
> > > }
> > > ~~~~~~~~~~~~~~~~~~~~~~~~
> > >
> > >
> > > As you can see, the sequence of arguments is not match. Is it inheritance
> > > problem?
> > > Tnx for any suggestions.
> > >
> > >
> > > --
> > > View this message in context: http://www.nabble.com/Axis-1.4-WSDL4J-wrong-arguments-sequence-in-generated-classes-tf4049803.html#a11503152
> > > Sent from the Axis - User mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis 1.4 WSDL4J wrong arguments sequence in generated classes
Posted by Alexey Zavizionov <al...@gmail.com>.
Hi,
Please take a look at the issue.
That blocks my work!
Thaks,
Alexey
On Jul 10, 2007 10:05 AM, Alexey Zavizionov
<al...@exoplatform.com.ua> wrote:
> Looks like a bug in axis1 1.4
>
> The class MimeResponse generated correctly with attribute
> "ccppProfileWarning" as last parameter in constructor, but
> MarkupContext generated wrong, IMHO, because MarkupContext call super
> constructor with first (should be last) parameter "ccppProfileWarning"
>
> Any approvement from axis team?
>
> Regards,
> Alexey
>
>
> On 7/9/07, Max Shaposhnik <uy...@yahoo.com> wrote:
> >
> > Hello,
> > trying to use Axis 1.4 for implementing some web service, but
> > got compile error as follows:
> >
> > part of wsdl schema:
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~
> > <complexType name="MimeResponse">
> > <sequence>
> > <element name="useCachedItem" type="xsd:boolean"
> > default="false" minOccurs="0"/>
> > <element name="mimeType" type="xsd:string"
> > minOccurs="0"/>
> > <element name="itemString" type="xsd:string"
> > minOccurs="0"/>
> > <element name="itemBinary" type="xsd:base64Binary"
> > minOccurs="0"/>
> > <element name="locale" type="xsd:string"
> > minOccurs="0"/>
> > <element name="requiresRewriting" type="xsd:boolean"
> > default="false" minOccurs="0"/>
> > <element name="cacheControl" type="types:CacheControl"
> > minOccurs="0"/>
> > <element name="extensions" type="types:Extension"
> > minOccurs="0" maxOccurs="unbounded"/>
> > </sequence>
> > <attribute name="ccppProfileWarning" type="xsd:string"
> > use="optional"/>
> > </complexType>
> > <element name="MimeResponse" type="types:MimeResponse"/>
> >
> > <complexType name="MarkupContext">
> > <complexContent>
> > <extension base="types:MimeResponse">
> > <sequence>
> > <element name="preferredTitle" type="xsd:string"
> > minOccurs="0"/>
> > </sequence>
> > </extension>
> > </complexContent>
> > </complexType>
> > <element name="MarkupContext" type="types:MarkupContext"/>
> > ~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> >
> > Output code ( look for super() constructor ):
> > ~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > public class MarkupContext extends
> > org.mycompany.services.wsrp.type.MimeResponse implements
> > java.io.Serializable {
> > private java.lang.String preferredTitle;
> >
> > public MarkupContext() {
> > }
> >
> > public MarkupContext(
> > java.lang.String ccppProfileWarning,
> > java.lang.Boolean useCachedItem,
> > java.lang.String mimeType,
> > java.lang.String itemString,
> > byte[] itemBinary,
> > java.lang.String locale,
> > java.lang.Boolean requiresRewriting,
> > org.exoplatform.services.wsrp.type.CacheControl cacheControl,
> > org.exoplatform.services.wsrp.type.Extension[] extensions,
> > java.lang.String preferredTitle) {
> > super(
> > ccppProfileWarning,
> > useCachedItem,
> > mimeType,
> > itemString,
> > itemBinary,
> > locale,
> > requiresRewriting,
> > cacheControl,
> > extensions);
> > this.preferredTitle = preferredTitle;
> > }
> >
> >
> >
> > and here is MimeResponse constructor:
> >
> > public MimeResponse(
> > java.lang.Boolean useCachedItem,
> > java.lang.String mimeType,
> > java.lang.String itemString,
> > byte[] itemBinary,
> > java.lang.String locale,
> > java.lang.Boolean requiresRewriting,
> > org.exoplatform.services.wsrp.type.CacheControl cacheControl,
> > org.exoplatform.services.wsrp.type.Extension[] extensions,
> > java.lang.String ccppProfileWarning) {
> > this.useCachedItem = useCachedItem;
> > this.mimeType = mimeType;
> > this.itemString = itemString;
> > this.itemBinary = itemBinary;
> > this.locale = locale;
> > this.requiresRewriting = requiresRewriting;
> > this.cacheControl = cacheControl;
> > this.extensions = extensions;
> > this.ccppProfileWarning = ccppProfileWarning;
> > }
> > ~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> > As you can see, the sequence of arguments is not match. Is it inheritance
> > problem?
> > Tnx for any suggestions.
> >
> >
> > --
> > View this message in context: http://www.nabble.com/Axis-1.4-WSDL4J-wrong-arguments-sequence-in-generated-classes-tf4049803.html#a11503152
> > Sent from the Axis - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis 1.4 WSDL4J wrong arguments sequence in generated classes
Posted by Alexey Zavizionov <al...@exoplatform.com.ua>.
Looks like a bug in axis1 1.4
The class MimeResponse generated correctly with attribute
"ccppProfileWarning" as last parameter in constructor, but
MarkupContext generated wrong, IMHO, because MarkupContext call super
constructor with first (should be last) parameter "ccppProfileWarning"
Any approvement from axis team?
Regards,
Alexey
On 7/9/07, Max Shaposhnik <uy...@yahoo.com> wrote:
>
> Hello,
> trying to use Axis 1.4 for implementing some web service, but
> got compile error as follows:
>
> part of wsdl schema:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~
> <complexType name="MimeResponse">
> <sequence>
> <element name="useCachedItem" type="xsd:boolean"
> default="false" minOccurs="0"/>
> <element name="mimeType" type="xsd:string"
> minOccurs="0"/>
> <element name="itemString" type="xsd:string"
> minOccurs="0"/>
> <element name="itemBinary" type="xsd:base64Binary"
> minOccurs="0"/>
> <element name="locale" type="xsd:string"
> minOccurs="0"/>
> <element name="requiresRewriting" type="xsd:boolean"
> default="false" minOccurs="0"/>
> <element name="cacheControl" type="types:CacheControl"
> minOccurs="0"/>
> <element name="extensions" type="types:Extension"
> minOccurs="0" maxOccurs="unbounded"/>
> </sequence>
> <attribute name="ccppProfileWarning" type="xsd:string"
> use="optional"/>
> </complexType>
> <element name="MimeResponse" type="types:MimeResponse"/>
>
> <complexType name="MarkupContext">
> <complexContent>
> <extension base="types:MimeResponse">
> <sequence>
> <element name="preferredTitle" type="xsd:string"
> minOccurs="0"/>
> </sequence>
> </extension>
> </complexContent>
> </complexType>
> <element name="MarkupContext" type="types:MarkupContext"/>
> ~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
> Output code ( look for super() constructor ):
> ~~~~~~~~~~~~~~~~~~~~~~~~
>
> public class MarkupContext extends
> org.mycompany.services.wsrp.type.MimeResponse implements
> java.io.Serializable {
> private java.lang.String preferredTitle;
>
> public MarkupContext() {
> }
>
> public MarkupContext(
> java.lang.String ccppProfileWarning,
> java.lang.Boolean useCachedItem,
> java.lang.String mimeType,
> java.lang.String itemString,
> byte[] itemBinary,
> java.lang.String locale,
> java.lang.Boolean requiresRewriting,
> org.exoplatform.services.wsrp.type.CacheControl cacheControl,
> org.exoplatform.services.wsrp.type.Extension[] extensions,
> java.lang.String preferredTitle) {
> super(
> ccppProfileWarning,
> useCachedItem,
> mimeType,
> itemString,
> itemBinary,
> locale,
> requiresRewriting,
> cacheControl,
> extensions);
> this.preferredTitle = preferredTitle;
> }
>
>
>
> and here is MimeResponse constructor:
>
> public MimeResponse(
> java.lang.Boolean useCachedItem,
> java.lang.String mimeType,
> java.lang.String itemString,
> byte[] itemBinary,
> java.lang.String locale,
> java.lang.Boolean requiresRewriting,
> org.exoplatform.services.wsrp.type.CacheControl cacheControl,
> org.exoplatform.services.wsrp.type.Extension[] extensions,
> java.lang.String ccppProfileWarning) {
> this.useCachedItem = useCachedItem;
> this.mimeType = mimeType;
> this.itemString = itemString;
> this.itemBinary = itemBinary;
> this.locale = locale;
> this.requiresRewriting = requiresRewriting;
> this.cacheControl = cacheControl;
> this.extensions = extensions;
> this.ccppProfileWarning = ccppProfileWarning;
> }
> ~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> As you can see, the sequence of arguments is not match. Is it inheritance
> problem?
> Tnx for any suggestions.
>
>
> --
> View this message in context: http://www.nabble.com/Axis-1.4-WSDL4J-wrong-arguments-sequence-in-generated-classes-tf4049803.html#a11503152
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org