Hi,
Please take a look at the issue.
That blocks my work!
Thaks,
Alexey
On Jul 10, 2007 10:05 AM, Alexey Zavizionov
<[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]