You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bill Lear <ra...@zopyra.com> on 2003/05/14 16:25:36 UTC

Integer converted to int by WSDL2Java/Java2@SDL

I have been using Java2WSDL and WSDL2Java with a great measure of
success, until a small hiccup just now, when I defined a method in an
interface as such:

  Integer createProfile(Integer userID, Profile profile)
          throws StoreException;

I implemented the method, and went to compile things, and after a
bit of head-scratching noticed that the signature of the method
had been changed in the generated interface, to:

  public int createProfile(int in0, Profile in1)
      throws java.rmi.RemoteException;

I couldn't figure this out, so I just changed the original interface
to user int instead of Integer and things worked fine, but this is
troubling.

The wsdl2java command in Ant that I use looks like this:

        <wsdl2java url="${build.dest}/op.wsdl"
                   output="build/work"
                   deployscope="session"
                   serverSide="yes"
                   skeletonDeploy="no"
                   helpergen="no"
                   noimports="no"
                   verbose="no"
                   typeMappingVersion="1.1"
                   testcase="no">
            <mapping namespace="http://commands.soap.op.iqwave.com"
                     package="com.iqwave.op.soap.commands.ws"/>
        </wsdl2java>

Have I done something wrong, or have I misunderstood how Integer is
supposed to be treated in this situation?

Thanks.


Bill