webservice

<target name="ear">
<taskdef classpathref="classpath" name="servicegen"
classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask" />
<taskdef classpathref="classpath" name="clientgen"
classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask" />
<taskdef classpathref="classpath" name="wlpackage"
classname="weblogic.ant.taskdefs.build.WLPackageTask" />

<servicegen destEar="testWebService.ear" contextURI="WebServices">
<classpath refid="classpath"/>
<classpath>
<pathelement path="${dest.classes.dir}" />
</classpath>
<service javaClassComponents="com.tst.ws.JavaWebService"
targetNamespace="http://www.getgamma.com/webservices/javaclass"
serviceName="TestWS"
serviceURI="/TestWS"
generateTypes="True"
expandMethods="True"
style="rpc">
<client packageName="com.tst.ws.javaclass" />
</service>
</servicegen>
</target>

你可能感兴趣的:(webservice)