MyException - 我的异常网
当前位置:我的异常网» J2EE » 【高分请教,回复者有份】关于升级Weblogic8.1 的We

【高分请教,回复者有份】关于升级Weblogic8.1 的WebService 到Weblogic10的有关问题

www.MyException.Cn  网友分享于:2013-12-27  浏览:89次
【高分请教,回复者有份】关于升级Weblogic8.1 的WebService 到Weblogic10的问题!
下面代码是一段Weblogic8.1的build.xml文件的代码:
<target name="weblogicSpecificTask-serviceGen">
<taskdef name="servicegen" classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="${lib.home.po}/weblogic">
<include name="**/*.jar" />
</fileset>
</classpath>
</taskdef>
<taskdef name="for" classname="net.sf.antcontrib.logic.For">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="${lib.home.po}/ant-contrib-0.6">
<include name="**/*.jar" />
</fileset>
</classpath>
</taskdef>
<echo message="${ServiceList}" />
<for list="${ServiceList}" param="x">
<sequential>
<echo message="@{x}..." />
<echo message="${CoreEAR.home}/dist/${outputEAR}" />
<servicegen destEar="${CoreEAR.home}/dist/${outputEAR}" warName="PlantOperationsCore_HTTPRouter.war" contextURI="/PlantOperationsCore/services" mergeWithExistingWS="true" overWrite="true">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="${lib.home.po}/weblogic">
<include name="**/*.jar" />
</fileset>
<fileset dir="${SharedObjects.home}\dist" includes="*.jar" />
<fileset dir="${PlantOpsCoreServerConstants.home}\dist" includes="*.jar" />
<fileset dir="${CommonDB.home}\dist" includes="*.jar" />
<fileset dir="${CommonConstants.home}\dist" includes="*.jar" />
<fileset dir="${CommonLogging.home}\dist" includes="*.jar" />
</classpath>
<service ejbJar="${CoreEJB.home}/dist/PlantOperationsCore.jar" targetNamespace="Datasweep.PlantOperations.Services" serviceName="@{x}Service" serviceURI="/@{x}" generateTypes="True" expandMethods="True" includeEJBs="@{x}" style="rpc" protocol="http"></service>
</servicegen>
</sequential>
</for>
</target>

这是生成一系列Webservices的代码。
升级到Weblogic10后的xml代码如下:
<target name="weblogicSpecificTask-serviceGen">
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="${lib.home.po}/weblogic">
<include name="**/*.jar" />
</fileset>
</classpath>
</taskdef>
<taskdef name="for" classname="net.sf.antcontrib.logic.For">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="${lib.home.po}/ant-contrib-0.6">
<include name="**/*.jar" />
</fileset>
</classpath>
</taskdef>
<echo message="${ServiceList}" />
<for list="${ServiceList}" param="x">
<sequential>
<echo message="@{x}..." />
<echo message="${CoreEAR.home}/dist/${outputEAR}" />
<jwsc destdir="${CoreEAR.home}/dist" srcdir="src">
<classpath>
<pathelement path="${classpath}" />

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有