Re: Re: Using Axis2 with Maven

Hendrik Geßner <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
> But I'm not sure I understand your question. Are you asking for 
> dependencies in pom.xml ? We have our own maven repo and added all the 
> jars to that.

I am looking for an official dependency code snippet. After checking the
rampart pom again, I found a starting point that I missed before. After some
copy-pasting, trial-and-error and searching through the official repository
my pom contains the following code:

  <dependencies>
    <dependency>
      <groupId>org.apache.axis2</groupId>
      <artifactId>axis2-transport-local</artifactId>
      <version>1.5.7-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>org.apache.axis2</groupId>
      <artifactId>axis2</artifactId>
      <version>1.6.1</version>
    </dependency>
    <dependency>
      <groupId>org.apache.axis2</groupId>
      <artifactId>axis2-jaxws</artifactId>
      <version>1.6.1</version>
    </dependency>
  </dependencies>

  <repositories>
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Repository</name>
      <url>http://repository.apache.org/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>

This works for calling a simple web service using code created with
wsdl2java. I have two questions concerning this code snippet:

1. Why do I have to invest several hours myself for such a simple sample
that should be put somewhere in the docs?
2. Why do I have to specify the axis2-transport-local dependency? I don't
use it myself but it is seems to be necessary for calling a web service, so
that should be specified somewhere in the axis2 pom, shouldn't it?

I didn't use rampart yet, but that is the next step.

Thanks,
Hendrik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.