axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tore Garder Larsen (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1865) Axis 1.2 RC3 wsdl2Java problem
Date Mon, 21 Mar 2005 15:07:29 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1865?page=comments#action_61318 ]
     
Tore Garder Larsen commented on AXIS-1865:
------------------------------------------

This bug is probably the same as AXIS-1874 and is serious as it breaks my webservice implementation
when creating objects using the constructor.

My example is:

wsdl:
<xsd:complexType name="GetMapGraphicsRequestType">
  <xsd:sequence>
    <xsd:element ref="common:objectIds" minOccurs="1" maxOccurs="1"/>
    <xsd:element ref="applicationMode" minOccurs="0"/>
    <xsd:element ref="presentationRule" minOccurs="0"/>
    <xsd:element name="backgroundMap" type="xsd:boolean" minOccurs="0"/>
    <xsd:element name="minSize" type="xsd:integer" minOccurs="0"/>
  </xsd:sequence>
</xsd:complexType>

generated JavaBean:
public class GetMapGraphicsRequestType  implements java.io.Serializable {
    private com.incatel.nims.webservice.generatedtypes.commonTypes.ObjectIdsType objectIds;
    private java.lang.String applicationMode;
    private java.lang.String presentationRule;
    private java.lang.Boolean backgroundMap;
    private java.math.BigInteger minSize;

    public GetMapGraphicsRequestType() {
    }

    public GetMapGraphicsRequestType(
           java.lang.String applicationMode,
           java.lang.Boolean backgroundMap,
           java.math.BigInteger minSize,
           com.incatel.nims.webservice.generatedtypes.commonTypes.ObjectIdsType objectIds,
           java.lang.String presentationRule) {
           this.objectIds = objectIds;
           this.applicationMode = applicationMode;
           this.presentationRule = presentationRule;
           this.backgroundMap = backgroundMap;
           this.minSize = minSize;
    }

As orthers have seen, the parameters in the constructor is rearranged in alphabetical order,
bu the listing of the parameters otherwise is correct. I have 50 API methods in my web service
and I'm generating several hundred JavaBeans from WSDL. 

Of course this means that I can't compile/build the code using AxisRC3.

Regards from Tore Larsen

> Axis 1.2 RC3 wsdl2Java problem
> ------------------------------
>
>          Key: AXIS-1865
>          URL: http://issues.apache.org/jira/browse/AXIS-1865
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC3
>  Environment: Windows XP, java version "1.4.2_03".
>     Reporter: Patrick Cogan
>  Attachments: CorDataObject.java, cmsService.wsdl
>
> I have recently migrated to RC3 and may have found a potentual problem.
> In my WSDL I have a complex type 'Dao' that has many attributes of
> strings and longs. Using wsdl2java to generate the server source the
> copmplex type 'Dao' gets converted as expected to the java type 'Dao'.
> The only problem is that the 'Dao' generated constructorn has the
> order of the parameters rearanged, compared to the order in the WSDL,
> which causes a no such method exception for other classes using this
> bean 'Dao'.
> My ant task for this is:
>        <target name="wsdl2java-service" description="Runs wsdl2java to
> generate the service artifacts, such as deploy.wsdd">
>                <java classname="org.apache.axis.wsdl.WSDL2Java" fork="yes">
>                        <arg value="--NStoPkg"/>
>                        <arg value="${dao.types.namespace}=${dao.package}" />
>                        <arg value="--NStoPkg"/>
>                        <arg value="${wsdl.types.namespace}=${service.package}" />
>                        <arg value="--NStoPkg"/>
>                        <arg value="http://www.comp.com/wsdl/cms=${service.package}"
/>
>                        <arg value="--NStoPkg" />
>                        <arg value="http://www.comp.com/types/cms=${ws.common.package}"
/>
>                        <arg value="--NStoPkg"/>
>                        <arg value="http://www.comp.com/types/array=${ws.common.package}"
/>
>                        <arg value="--NStoPkg"/>
>                        <arg value="http://www.comp.com/types/exception=${ws.common.package}.exception"
> />
>                        <arg value="--all" />
>                        <arg value="--noWrapped" />
>                        <arg value="--server-side" />
>                        <arg value="--output" />
>                        <arg value="${service.src.dir}" />
>                        <arg value="--verbose" />
>                        <arg value="${service.wsdl.path}" />
>                        <classpath>
>                                <path refid="axis.classpath" />
>                        </classpath>
>                </java>
>        </target>

-- 
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


Mime
View raw message