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 Simon Steinacker <si...@student.uibk.ac.at> on 2007/11/16 08:56:14 UTC

axis2 java2wsdl ant task

Hello,

Is there a way to generate a webservice from a java class using an ant 
task? I couldn't find nice documentation about that :(

thanks,
Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: axis2 java2wsdl ant task

Posted by Upul Godage <up...@gmail.com>.
There's a maven plugin though.

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.test</groupId>
  <artifactId>hello</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>hello</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.axis2</groupId>
        <artifactId>axis2-java2wsdl-maven-plugin</artifactId>
        <configuration>
          <className>com.foo.myservice.MyHandler</className>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>java2wsdl</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>


Or you can call the AXIS2_HOME/bin/java2wsdl.sh command line program
using an Ant <java /> task

You can also deploy a Java class as a web service directly. Check this
link http://ws.apache.org/axis2/1_3/pojoguide.html


Upul



On Nov 16, 2007 1:26 PM, Simon Steinacker
<si...@student.uibk.ac.at> wrote:
> Hello,
>
> Is there a way to generate a webservice from a java class using an ant
> task? I couldn't find nice documentation about that :(
>
> thanks,
> Simon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org