axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Zavizionov" <alexey.zavizio...@exoplatform.com.ua>
Subject Re: Axis 1.4 WSDL4J wrong arguments sequence in generated classes
Date Tue, 10 Jul 2007 08:05:06 GMT
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 <uy7c@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


Mime
View raw message