1 Reply Latest reply on Apr 26, 2010 10:48 PM by Jim Ma

    How to get wsconsume to create constructors?

    Zoli Szugyi Newbie

      I'm using wsconsume to generate the classes for a web service at build time.

      It properly generates the classes except I'll need the generated classes to have a constructor

      with a parameter for each field. The order doesn't really matter as long as it stays consistent.

      Is there a way to do that?

       

       

      I'm using the wsconsume tool from jboss-4.2.3.

      the ant task looks like this:

       

      <wsconsume
                   fork="false"
                   verbose="true"
                   destdir="${api.output.dir}"
                   sourcedestdir="${src.dir}/server/main"
                   package="generated.classes.client"
                   keep="true"
                   wsdl="${staging.classes}/WSDL.wsdl" />
      Thanks!