After further review, this appears to be a bug between org.apache.axis.wsdl.toJava.JavaBindingWriter and org.apache.axis.wsdl.toJava.Utils (in Axis 1.3).  Can someone verify this?

Thanks,
Scott S. McCoy
On 3/1/06, Scott McCoy <[EMAIL PROTECTED]> wrote:
Hello,

     I previously was mapping the WSDL2Java classes to a local namespace for our project.  We have determined using the default generated java namespaces for the generated code, and using our internal namespace for the implementation, would be the best course of action.

      However, when I changed our build and generation process to reflect this suggestion, WSDL2Java started overwriting my implementation class!

<!-- This works as anticipated -->
    <target name="generate-service">
        <java classname="org.apache.axis.wsdl.WSDL2Java"
              fork="true" failonerror="true">
            <classpath refid="base.classpath"/>
            <arg value="--server-side"/>
            <arg value="--output"/>
            <arg value="src/java"/>
            <arg value="--verbose"/>
            <arg value="--wrapArrays"/>
            <arg value="-Nhttp://plm.marchex.com/credentials=tufte.model.service"/>
            <arg value="-Nhttp://plm.marchex.com/service/account=tufte.model.service.account"/>
            <arg value="--implementationClassName"/>
            <arg value="tufte.model.service.account.ServiceHandler"/>
            <arg value="src/xml/account.wsdl"/>
        </java>
    </target>

<!-- This overwrites tufte.model.service.account.ServiceHandler each time! -->
    <target name="generate-plm">
        <java classname=" org.apache.axis.wsdl.WSDL2Java"
              fork="true" failonerror="true">
            <classpath refid="base.classpath"/>
            <arg value="--server-side"/>
            <arg value="--output"/>
            <arg value="src/java"/>
            <arg value="--verbose"/>
            <arg value="--wrapArrays"/>
            <arg value="--implementationClassName"/>
            <arg value="tufte.model.service.account.ServiceHandler"/>
            <arg value="src/xml/account.wsdl"/>
        </java>
    </target>


If anybody has an idea as to why this is happening it would be much appreciated.


Reply via email to