文件名称:SOAP_XFire
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2016-12-22
- 文件大小:
- 27.24mb
- 下载次数:
- 0次
- 提 供 者:
- KE***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
开发环境:jdk1.6 + Tomcat7 + MyEclipse10
源码下载地址张贴在文章最后面:
首先是使用WSDL协议实现:这里使用XFire
XFire一个免费、开源的SOAP框架,它构建了POJO和SOA之间的桥梁,主要特性就是支持将POJO通过非常简单的方式发布成Web服务,其原理是以接口反射机制自动取得远程方法的
WSDL是一个用来描述Web服务和说明如何与Web服务通信的XML语言
准备:开发之前请先下载xfire-distribution-1.2.6.zip并解压缩
(1)、新建一个Web项目(服务端),名称为XFireWebService,其目的是为了测试WebService服务端
为工程添加XFire支持的类库,把xfire-1.2.6里lib所有jar和xfire-all-1.2.6.jar拷贝到工程lib里
(2)、把XFire加载到系统中来,增加web.xml的配置信息.... -Development environment: jdk1.6+ Tomcat7+ MyEclipse10
Download source code posted at the end of the article:
The first is implemented using the WSDL protocol: XFire is used here
XFire a free, open source SOAP fr a mework, which builds a bridge between POJO and SOA, the main feature is to support the POJO in a very simple way to publish into a Web service, the principle is to automatically obtain the remote interface reflection mechanism
A WSDL is an XML language that describes a Web service and describes how to communicate with a Web service
Prepare: Download xfire-distribution-1.2.6.zip and unzip it before proceeding
(1), create a new Web project (server), the name is XFireWebService, its purpose is to test WebService server
XFire support for the project to support the class library, the xfire-1.2.6 lib all jar and xfire-all-1.2.6.jar copy to the project lib
(2), the XFire loaded into the system to increase web.xml configuration information ....
源码下载地址张贴在文章最后面:
首先是使用WSDL协议实现:这里使用XFire
XFire一个免费、开源的SOAP框架,它构建了POJO和SOA之间的桥梁,主要特性就是支持将POJO通过非常简单的方式发布成Web服务,其原理是以接口反射机制自动取得远程方法的
WSDL是一个用来描述Web服务和说明如何与Web服务通信的XML语言
准备:开发之前请先下载xfire-distribution-1.2.6.zip并解压缩
(1)、新建一个Web项目(服务端),名称为XFireWebService,其目的是为了测试WebService服务端
为工程添加XFire支持的类库,把xfire-1.2.6里lib所有jar和xfire-all-1.2.6.jar拷贝到工程lib里
(2)、把XFire加载到系统中来,增加web.xml的配置信息.... -Development environment: jdk1.6+ Tomcat7+ MyEclipse10
Download source code posted at the end of the article:
The first is implemented using the WSDL protocol: XFire is used here
XFire a free, open source SOAP fr a mework, which builds a bridge between POJO and SOA, the main feature is to support the POJO in a very simple way to publish into a Web service, the principle is to automatically obtain the remote interface reflection mechanism
A WSDL is an XML language that describes a Web service and describes how to communicate with a Web service
Prepare: Download xfire-distribution-1.2.6.zip and unzip it before proceeding
(1), create a new Web project (server), the name is XFireWebService, its purpose is to test WebService server
XFire support for the project to support the class library, the xfire-1.2.6 lib all jar and xfire-all-1.2.6.jar copy to the project lib
(2), the XFire loaded into the system to increase web.xml configuration information ....
(系统自动生成,下载前可以参看下载内容)
下载文件列表
XFireWebService\.classpath
...............\.mymetadata
...............\.project
...............\.settings\.jsdtscope
...............\.........\org.eclipse.jdt.core.prefs
...............\.........\org.eclipse.wst.jsdt.ui.superType.container
...............\.........\org.eclipse.wst.jsdt.ui.superType.name
...............\src\com\test\ws\EnterVO.java
...............\...\...\....\..\ExceedVO.java
...............\...\...\....\..\HelloServiceImpl.java
...............\...\...\....\..\IHelloService.aegis.xml
...............\...\...\....\..\IHelloService.java
...............\...\META-INF\xfire\services.xml
...............\WebRoot\index.jsp
...............\.......\META-INF\MANIFEST.MF
...............\.......\WEB-INF\classes\com\test\ws\EnterVO.class
...............\.......\.......\.......\...\....\..\ExceedVO.class
...............\.......\.......\.......\...\....\..\HelloServiceImpl.class
...............\.......\.......\.......\...\....\..\IHelloService.aegis.xml
...............\.......\.......\.......\...\....\..\IHelloService.class
...............\.......\.......\.......\META-INF\xfire\services.xml
...............\.......\.......\lib\activation-1.1.jar
...............\.......\.......\...\ASL-2.0.txt
...............\.......\.......\...\bcprov-jdk15-133.jar
...............\.......\.......\...\castor-BSD.txt
...............\.......\.......\...\CDDL-1.0.txt
...............\.......\.......\...\commons-attributes-api-2.1.jar
...............\.......\.......\...\commons-beanutils-1.7.0.jar
...............\.......\.......\...\commons-codec-1.3.jar
...............\.......\.......\...\commons-discovery-0.2.jar
...............\.......\.......\...\commons-httpclient-3.0.jar
...............\.......\.......\...\commons-logging-1.0.4.jar
...............\.......\.......\...\jaxb-api-2.0.jar
...............\.......\.......\...\jaxb-impl-2.0.1.jar
...............\.......\.......\...\jaxb-xjc-2.0.1.jar
...............\.......\.......\...\jaxen-1.1-beta-9.jar
...............\.......\.......\...\jaxen-ASL-1.1.txt
...............\.......\.......\...\jaxws-api-2.0.jar
...............\.......\.......\...\jdom-1.0.jar
...............\.......\.......\...\jetty-6.1.2rc0.jar
...............\.......\.......\...\jetty-util-6.1.2rc0.jar
...............\.......\.......\...\jmock-1.0.1.jar
...............\.......\.......\...\jsr173_api-1.0.jar
...............\.......\.......\...\junit-3.8.1.jar
...............\.......\.......\...\mail-1.4.jar
...............\.......\.......\...\opensaml-1.0.1.jar
...............\.......\.......\...\saaj-api-1.3.jar
...............\.......\.......\...\saaj-impl-1.3.jar
...............\.......\.......\...\servlet-api-2.3.jar
...............\.......\.......\...\servlet-api-2.5-6.1.2rc0.jar
...............\.......\.......\...\spring-1.2.6.jar
...............\.......\.......\...\stax-api-1.0.1.jar
...............\.......\.......\...\stax-utils-20040917.jar
...............\.......\.......\...\wsdl4j-1.6.1.jar
...............\.......\.......\...\wss4j-1.5.1.jar
...............\.......\.......\...\wstx-asl-3.2.0.jar
...............\.......\.......\...\xbean-2.2.0.jar
...............\.......\.......\...\xbean-spring-2.8.jar
...............\.......\.......\...\xercesImpl-2.6.2.jar
...............\.......\.......\...\xfire-all-1.2.6.jar
...............\.......\.......\...\xfire-jsr181-api-1.0-M1.jar
...............\.......\.......\...\xml-apis-1.0.b2.jar
...............\.......\.......\...\XmlSchema-1.1.jar
...............\.......\.......\...\xmlsec-1.3.0.jar
...............\.......\.......\web.xml
........Client\.classpath
..............\.mymetadata
..............\.project
..............\.settings\.jsdtscope
..............\.........\org.eclipse.jdt.core.prefs
..............\.........\org.eclipse.wst.jsdt.ui.superType.container
..............\.........\org.eclipse.wst.jsdt.ui.superType.name
..............\src\com\test\ws\ClientTestServlet.java
..............\...\...\....\..\IHelloService.aegis.xml
..............\WebRoot\index.jsp
..............\.......\META-INF\MANIFEST.MF
..............\.......\result.jsp
..............\.......\WEB-IN