Axis2 Web Service Client Generation - Types without modifying the client

前端 未结 6 2021
失恋的感觉
失恋的感觉 2021-01-01 06:35

Is it possible with Axis2 and Eclipse to generate a Web Service client and have it use java types that you already have in packages instead of creating it\'s own types. Rea

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 07:15

    In case this post is still of any use to someone I read the axis2 generating clients guide: http://axis.apache.org/axis2/java/core/docs/userguide-creatingclients.html.

    It seems that the Axis2 Eclipse plugin is configured to call ADB code generation in integrated mode (see http://axis.apache.org/axis2/java/core/docs/adb/adb-howto.html), thus creating inner classes in the Web service stub. I don't know if changing the generation mode to expanded mode (generate data classes out of the stub class) is possible, but you can do it command line using Wsdl2Java:

        %AXIS2_HOME%\bin\WSDL2Java -uri  -p  -u
    

    The -u option tells the ADB code generator to create data classes as separate classes and not inner classes in the stub.

提交回复
热议问题