You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Martin Gainty <mg...@hotmail.com> on 2007/05/18 00:50:36 UTC

WSDL2Java classpath?

Good Evening All

Is there a classpath or classpathref attribute avail for wsdl2java Task?

Thanks!
Martin
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.


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


Re: WSDL2Java classpath?

Posted by Peter Reilly <pe...@gmail.com>.
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 <st...@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


Re: WSDL2Java classpath?

Posted by Steve Loughran <st...@apache.org>.
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