Migrating from Axis 1.x to Axis2: Java2WSDLTask: boolean getters

vlad romascanu <[email protected]>
Newsgroups gmane.text.xml.axis.user
Organization Oracle Corporation
Message-ID <[email protected]>
Hello,

I'm migrating from Axis 1.4 to Axis2 1.7.7.  I have observed that for 
the following WSDL:

    ...
         <types>
             <schema elementFormDefault="qualified"
                 targetNamespace="..."
                 xmlns="http://www.w3.org/2001/XMLSchema">
    ...
                 <complexType name="HostType">
                     <sequence>
    ...
                         <element minOccurs="1" maxOccurs="1"
                             name="SSLEnabled" type="boolean" />
    ...
                     </sequence>
                 </complexType>
    ...

Axis 1.4's wsdl2java ANT task (output, testcase="false", serverside, 
url, mapping options) generated:

         /**
          * Gets the SSLEnabled value for this HostType.
          *
          * @return SSLEnabled
          */
         public boolean isSSLEnabled() {
             return SSLEnabled;
         }

whereas Axis2 1.7.7's ANT task (output, testcase="false", 
syncOnly="false", serverSide, wsdlfilename, generateServiceXml options) 
now generates:

         /**
          * Auto generated getter method
          * @return boolean
          */
         public boolean getSSLEnabled() {
             return localSSLEnabled;
         }

Notice how the old isXXX() has become getXXX().

I couldn't find this addressed on this list or elsewhere.

Is this change expected behaviour, and is it controllable in any way?

Thanks,
V.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.