What's the minimum classpath for an Axis2 client?

后端 未结 9 1001
清歌不尽
清歌不尽 2021-02-01 15:24

I want to build an Axis2 client (I\'m only accessing a remote web service, I\'m not implementing one!) with Maven2 and I don\'t want to add 21MB of JARs to my project.

9条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 16:06

    In Axis2 version 1.5.1 the maven modules appear to have been restructured.

    My Groovy scripts (Using ADB binding) have the following dependencies:

    @Grapes([
        @Grab(group='org.apache.axis2', module='axis2-kernel', version='1.5.1'),
        @Grab(group='org.apache.axis2', module='axis2-adb', version='1.5.1'),
        @Grab(group='org.apache.axis2', module='axis2-transport-local', version='1.5.1'),
        @Grab(group='org.apache.axis2', module='axis2-transport-http', version='1.5.1'),
    ])
    

    There's a logic to these. I could use an alternative binding framework when generating my stub or could use an alternative transport protocol to HTTP.

    Example code in this answer

提交回复
热议问题