ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: WSDL2Java classpath?
Date Fri, 18 May 2007 10:04:24 GMT
I use axis-1.4.
Both  java2wsdl and wsdl2java tasks takes a nested classpath element.

I use the following macros:
  <macrodef name="gen-wsdl-from-class">
    <attribute name="classname"/>
    <attribute name="classfile"/>
    <attribute name="wsdl"/>
    <attribute name="service"/>
    <sequential>
      <ac:outofdate>
        <sourcefiles path="@{classfile}"/>
        <targetfiles path="@{wsdl}"/>
        <sequential>
          <axis-java2wsdl
            classname="@{classname}"
            output="@{wsdl}"
            namespace="${ws.ns}"
            location="http://localhost:8080/axis/services/@{service}">
            <classpath>
              <path refid="main.path"/>
            </classpath>
          </axis-java2wsdl>
        </sequential>
      </ac:outofdate>
    </sequential>
  </macrodef>

and
  <!--                                                            -->
  <!--    Macrodef for generating client proxy files from a wsdl  -->
  <!--                                                            -->
  <macrodef name="gen-java-from-wsdl">
    <attribute name="wsdl"  description="s"/>
    <attribute name="targetfile"/>
    <attribute name="package"/>
    <sequential>
      <ac:outofdate>
        <sourcefiles path="@{wsdl}"/>
        <targetfiles path="@{targetfile}"/>
        <sequential>
          <axis-wsdl2java
            output="build/gen/java"
            url="@{wsdl}"
            serverside="true"
            verbose="false">
            <mapping namespace="${ws.ns}" package="@{package}"/>
            <classpath refid="main.path"/>
          </axis-wsdl2java>
        </sequential>
      </ac:outofdate>
    </sequential>
  </macrodef>


On 5/18/07, Steve Loughran <stevel@apache.org> wrote:
> Martin Gainty wrote:
> > Good Evening All
> >
> > Is there a classpath or classpathref attribute avail for wsdl2java Task?
>
> there should be, but you'd have to check the docs or with the axis team.
> I havent touched it for a long, long time
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message