- 浏览: 691693 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (239)
- 系统架构设计 (16)
- java collection framework (2)
- java分布式 (4)
- java多线程 (0)
- 故障处理及调优 (16)
- 软件开发过程及管理 (28)
- OS (5)
- 常用算法 (3)
- design pattern (8)
- transaction (7)
- java apps (48)
- corejava (7)
- java and DB (10)
- cache (0)
- webservice (14)
- web前端 (25)
- 报表 (4)
- 日志系统设计 (3)
- Oracle (4)
- mysql (11)
- xml (11)
- 数据源配置管理 (3)
- 企业数据存储 (4)
- php (2)
- 测试 (1)
最新评论
-
orangebook:
对于初学者来说,这样编写可能会误导,理解更烦锁。
观察者模式(发布-订阅) -
liudajiang:
呵呵 startThreads(rand ...
实践缩小Java synchronized 粒度 -
zengwenbo5566:
谢谢博主,学习了
解决getOutputStream() has already been called for this response -
u011335423:
大神厉害啊 可以了
解决getOutputStream() has already been called for this response -
xiang37:
...
解决getOutputStream() has already been called for this response
14.2 build.xml脚本代码
在这里增加了详细的注释。基本覆盖了axis全部使用方式。
<?xml version="1.0" ?>
<!DOCTYPE project [
<!ENTITY properties SYSTEM "file:../xmls/properties.xml">
<!ENTITY paths SYSTEM "file:../xmls/path_refs.xml">
<!ENTITY taskdefs SYSTEM "file:../xmls/taskdefs.xml">
<!ENTITY taskdefs_post_compile SYSTEM "file:../xmls/taskdefs_post_compile.xml">
<!ENTITY targets SYSTEM "file:../xmls/targets.xml">
]>
<!-- ===================================================================
<description>
Component file for Axis
Notes:
This is a build file for use with the Jakarta Ant build tool.
Prerequisites:
jakarta-ant from http://jakarta.apache.org
Build Instructions:
To wsdl2java
ant wsdl2java
Author:
lanning thunder4393@gmail.com zhanglelei@channelsoft.com
Copyright:
Copyright (c) 2002-2003 Apache Software Foundation.
</description>
==================================================================== -->
<!-- ====================================================================
1. You may use service interface to generate wsdl and other code files with <target name="java2wsd">
2. You also may use wsdl to generate code files and wsdd file with <target name="java2wsd">
====================================================================
-->
<!-- basedir is a build-in properties, it may directly be ${basedir}-->
<project default="wsdl2java" basedir="." >
<property name="axis.home" location=".." />
<property name="app.name" value="axis" />
<property name="componentName" value="com/int97" />
<property name="dev.dir" location="${basedir}" />
<property name="dev.classes.dir" location="${axis.home}/webapps/axis/WEB-INF/classes" />
<path id="dev.classpath">
<pathelement path="${dev.classes.dir}"/>
</path>
<path id="axis.classpath">
<fileset dir="${axis.home}/webapps/axis/WEB-INF/lib">
<include name="**/*.jar" />
</fileset>
</path>
<path id="all.classpath">
<path refid="axis.classpath"/>
<pathelement location="${dev.classes.dir}" />
</path>
<!-- the <taskdef> declaration to declare all the tasks listed in a properties file
inside the axis-ant.jar file
other definition method:
<taskdef name="axis-java2wsdl" classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask"
loaderref="axis" >
<classpath refid="classpath.id"/>
</taskdef>
-->
<taskdef resource="axis-tasks.properties" classpathref="axis.classpath" />
&properties;
&paths;
&taskdefs;
&taskdefs_post_compile;
&targets;
<target name="clean"/>
<target name="copy" depends="setenv"/>
<!-- =================================================================== -->
<!-- Set relevant parameters for concrete application
for example:
1. set wsdl file name
2. set mapping's package name
3. wsdl2java's properties need to refer the axis docs -->
<!-- =================================================================== -->
<target name="wsdl2java">
<echo message="Generating java files from wsdl"/>
<wsdl2java url="${dev.dir}/OpenBusinessService.wsdl"
output="${dev.dir}"
deployscope="session"
serverSide="yes"
skeletonDeploy="yes"
noimports="no"
verbose="yes"
typeMappingVersion="1.1"
testcase="yes">
<mapping namespace="http://134.96.71.13:8080/axis/OpenBusinessService.wsdl" package="com.int97.webserviceclient"/>
</wsdl2java>
</target>
<!-- axis-java2wsdl is a taskdefing the public Axis taskdefs in the axis-tasks.properties-->
<target name="java2wsdl">
<echo message="Generating java files from wsdl"/>
<!-- <java2wsdl> is equal with <axis-java2wsdl>-->
<axis-java2wsdl output="${dev.dir}/OpenBusinessServiceTest.wsdl"
classname="com.int97.test.OpenBusinessService"
location="http://localhost:8080/axis/services/OpenBusinessService"
namespace="urn:OpenBusinessService"
style="RPC" >
<!-- classpath is neccesary, otherwise, <java2wsdl> won't find the class.
<classpath refid="all.classpath" /> -->
<classpath path="${dev.classes.dir}" />
</axis-java2wsdl>
</target>
<!-- Deprecated
<target name="compile" depends="copy">
<javac srcdir="${axis.home}" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}">
<classpath>
<path refid="classpath"/>
</classpath>
<include name="samples/addr/**/*.java"/>
<exclude name="samples/addr/*.java" />
<exclude name="samples/**/*SMTP*.java" unless="smtp.present" />
<exclude name="**/old/**/*.java" />
</javac>
<wsdl2java url="${axis.home}/samples/addr/AddressBook.wsdl"
output="${build.dir}/work"
deployscope="session"
serverSide="yes"
skeletonDeploy="yes"
noimports="no"
verbose="no"
typeMappingVersion="1.1"
testcase="no">
<mapping namespace="urn:AddressFetcher2" package="samples.addr"/>
</wsdl2java>
<copy todir="${build.dir}/work/samples/addr" overwrite="yes">
<fileset dir="${axis.home}/samples/addr">
<include name="Main.java"/>
<include name="DOMUtils.java"/>
<include name="AddressBookSOAPBindingImpl.java"/>
</fileset>
</copy>
Compile the echo sample generated java files
<javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}" source="${source}" fork="${javac.fork}">
<classpath refid="classpath" />
<include name="samples/addr/**.java" />
</javac>
</target>
-->
<!-- Use this file to undeploy some handlers/chains and services -->
<!-- Two ways to do this: -->
<!-- java org.apache.axis.client.AdminClient undeploy.wsdd -->
<!-- after the axis server is running -->
<!-- or -->
<!-- java org.apache.axis.utils.Admin client|server undeploy.wsdd -->
<!-- from the same directory that the Axis engine runs -->
<!-- ???AdminService is setted in the server-config.wsdd, it's class is
org.apache.axis.utils.Admin
servletpath the path to the AxisAdmin servlet
url full url to the admin endpoint
-->
<target name="deploy">
<axis-admin port="8080" hostname="localhost" failonerror="true"
servletpath="${app.name}/services/AdminService" debug="true"
xmlfile="${basedir}/deploy.wsdd" />
</target>
<target name="undeploy">
<axis-admin port="8080" hostname="localhost" failonerror="true"
servletpath="${app.name}/services/AdminService" debug="true"
xmlfile="${basedir}/undeploy.wsdd" />
</target>
<!--<target name="run"/> -->
<!-- <target name="undeploy"/> -->
<!-- ============================================
Reference Resource
============================================
target name="j2w-nicethingsbean">
<axis-java2wsdl classname="samples.ejb.NiceThingsBean"
methods="sayHello,findNiceThingsFor,updateNiceThingsFor"
output="nicethings.wsdl"
location="http://localhost:8080/axis/services/NiceThingsBean"
namespace="http://localhost:8080/axis/services/NiceThingsBean"
namespaceImpl=
"http://localhost:8080/axis/services/NiceThingsBean">
<complextype classname="samples.ejb.NiceThings"
namespace="urn:NiceThingsBean"/>
< You can also pass in another serializer/deserializer if you don't want to use the default
BeanSerializerFactory for a particular complextype
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" >
</axis-java2wsdl>
</target>
-->
</project>
发表评论
-
Tomcat6+axis1.4 Web服务发布及压力测试
2011-01-07 15:53 32281.环境配置 1.1安装jdk1.6.0 1.2安装tom ... -
webService(web服务)自动发布工具-源代码
2008-11-12 15:11 3268这个小工具特别适合对web服务相关知识了解较少,又急需上web ... -
web服务自动发布工具初步完成
2008-10-02 21:10 2186web服务自动发布工具简单介绍: 1.整个过程由web程序 ... -
想做个webservice自动部署工具,欢迎大家提点需求或意见
2008-09-24 16:14 2272最近遇到了一个实际的问题:怎样让一个不了解webservice ... -
使用axis开发webservice
2008-09-23 16:42 46871 介绍本文并不是想介绍Web服务的原理、系统架构等,我们假设 ... -
webservice开发和使用指南4
2008-09-22 17:16 36403. 修改web.xml 加入如下代码<list ... -
Webservice开发和使用指南3
2008-09-22 17:14 23288.Axis集成Resin或其它应用服务器 8.1 ... -
Webservice开发和使用指南2
2008-09-22 17:13 43305.2 测试webservice接口工具 1. ... -
Webservice开发和使用指南1
2008-09-22 17:06 27721 .修改历史 Version Change ... -
webservice开源引擎的比较:Axis和CXF的比较
2008-09-22 15:09 5029在SOA领域,我们认为Web ... -
实战webservice安全策略
2008-07-09 12:51 8335前些日子公司的应用要 ... -
.net客户端调用java服务端,通讯数据加密解密思路及过程
2008-03-08 10:37 3967目前系统客户端用.net实现,java服务端采用了webser ... -
net的客户端调用java的web服务,服务端怎样保持session以及通讯的安全问题
2008-03-05 12:18 2202net的客户端调用java的web服务,在客户端怎样保持ses ...
相关推荐
经典的WebService开发和使用指南手册
WebService之CXF开发指南WebService之CXF开发指南WebService之CXF开发指南
包括webservice教程,以及在java中如何应用webservice开发,一步一步教你如何来做。
金草书EAS webservice 接口开发指南
WebService 开发手册 WebService开发指南
EAS-WebService开发指南.pdf
BOSWebService开发指南[收集].pdf
1、开发准备 首先需要下载axis2的相关jar包,到axis的官方网站即可获得开发的依赖包。 Axis2的简单WebService示例 1、编写一个简单的WebService的服务器端代码 三、 复杂对象类型的WebService 1、这次我们编写复杂...
介绍webservice,以及如何开发webservice,通过图示手把手教你如何开发!是很好的书籍。
WebService开发指南.rar WebService开发指南.rar
整个《WebService开发指南》V2.4 AXIS部分的源码。
1、发布成WebService的方法,其方法参数和返回值类型必须是下列列表中的类型,否则发布时看不见方法。是否可以添加异常未尝试。 2、早期的BOS Studio发布元数据是有BUG的,发布以后,元数据和配置文件并没有同步拷贝...
Axis WebService 技术指南,开发文档,很全面、详细。 Axis的简单入门实例 Axis的jws发布WebService Axis的wsdd模式发布WebService Axis中传递复杂对象和内部类 Axis中的handler、chain的特性 Axis中处理异常信息 ...
WebService之CXF开发指南
axis2 WebService 开发指南 web开发
BOS_V6.3_BOS开发指南_WebService,关于EAS BOS开发工具如何开发webservice的开发指南
axis2_webservice开发指南
BOSWebService开发指南.pdf