
soa
xiewenbo
互联网广告行业呆过几年,旅游公司呆过几年,对机器学习,自然语言处理,图像识别,个性化推荐 有兴趣
展开
-
Using the SOAP Monitor
Using the SOAP MonitorWeb service developers often want to see the SOAP messages that are being used to invoke the Web services, along with the results of those messages. The goal of the SOAP Moni转载 2012-04-02 20:07:18 · 659 阅读 · 0 评论 -
三、CXF对Interceptor拦截器的支持
三、CXF对Interceptor拦截器的支持前面在Axis中介绍过Axis的Handler,这里CXF的Interceptor就和Handler的功能类似。在每个请求响应之前或响应之后,做一些事情。这里的Interceptor就和Filter、Struts的Interceptor很类似,提供它的主要作用就是为了很好的降低代码的耦合性,提供代码的内聚性。下面我们就看看CXF的Inter转载 2012-04-16 15:23:03 · 569 阅读 · 0 评论 -
四、CXF WebService中传递复杂类型对象
四、CXF WebService中传递复杂类型对象前面介绍的都是传递简单的字符串,现在开始介绍传递复杂类型的对象。如JavaBean、Array、List、Map等。1、 首先看看服务器端的代码所需要的JavaBean对象package com.hoo.entity; import java.io.Serializable; /** * func转载 2012-04-16 15:30:22 · 709 阅读 · 0 评论 -
cxf 调用由axis2开发的webservice
public class MainClient {public static void main(String args[]){Listservice service = new Listservice();ListservicePortType port = service.getListserviceHttpSoap11Endpoint();// Listser转载 2012-04-17 19:25:23 · 2750 阅读 · 0 评论 -
利用cxf 开发web service 并利用cxf的wsdl2java开发client
Server:import javax.jws.WebParam;import javax.jws.WebService;import javax.jws.soap.SOAPBinding;import javax.jws.soap.SOAPBinding.Style;@WebService@SOAPBinding(style = Style.RPC)public cl转载 2012-04-17 19:05:59 · 1087 阅读 · 0 评论 -
create client with axis1.4
1)下载axis1.4,解压。下载activation.jar和mail.jar两个jar包,放到axis1.4的lib目录下2)进入axis1.4目录,运行java -Djava.ext.dirs=lib org.apache.axis.wsdl.WSDL2Java -p 客户端包名 web service url或wsdl文件路径3)生成的客户端代码里面涉及到web s转载 2013-01-08 12:53:53 · 689 阅读 · 0 评论 -
理解RESTful架构
作者: 阮一峰日期: 2011年9月12日越来越多的人开始意识到,网站即软件,而且是一种新型的软件。这种"互联网软件"采用客户端/服务器模式,建立在分布式体系上,通过互联网通信,具有高延时(high latency)、高并发等特点。网站开发,完全可以采用软件开发的模式。但是传统上,软件和网络是两个不同的领域,很少有交集;软件开发主要针对单机环转载 2012-04-06 19:09:13 · 426 阅读 · 0 评论 -
UsernameToken Authentication with Rampart
Apache Rampart is the Axis2 module that implements the WS-Security functionality based on Apache WSS4J. WS-Security provides multiple ways in which one can authenticate a user when they need to access转载 2014-03-30 00:20:08 · 594 阅读 · 0 评论 -
axis2 soap
单向服务继续讨论之前,让我们了解一下处理单向服务(而非请求/响应服务)时涉及到的不同之处。服务创建单向服务非常简单。此过程与创建请求/响应服务完全类似,至少不会实际返回任何内容。例如,可以为 CMSService类创建 addArticle 操作,如图 29 中所示。清单 29. CMSServiceclass 中的 addArticle 操作转载 2014-03-30 00:19:04 · 465 阅读 · 0 评论 -
eclipse jee + axis2 + axis eclipse plugin 开发Web Service
[size=medium]1.下载 eclipse javaee 版本2.下载 [color=red]axis2-1.5.6[/color] axis2-1.6.*和目前的插件不匹配3.下载 axis2-eclipse-service-archiver-wizard-1.4.zip axis2-eclipse-codegen-wizard-1.4.zip ...原创 2011-12-09 13:19:30 · 131 阅读 · 0 评论 -
axis2的qname not fond for the package问题的解决
June 15, 2011 | 作者:白菜在一个项目组,需要用到webservice,虽然现有的webservice组件为axis2,比较古老了,不过夜没办法,是个老项目。不过AXIS2还算好用,就是还是复杂了一些。在部署webservice的时候,我们可以通过这样的方法来在浏览器中测试http://aiyooyoo.com/service/getStudentService/...原创 2011-12-10 12:55:01 · 526 阅读 · 0 评论 -
Soap中RPC-style和Document-style
主要是思维方式的不同: 显然,RPC是以方法调用的方式描述WebSerivce的,也就是说,你要说清楚调用的那个方法,以及各个参数的名称和值。要描述这些东东,SOAP消息就要有一个统一的规范,指出那一部分是方法名,哪个部分是参数,哪个部分是返回值。换句话说,RPC方式调用的SOAP消息格式是有章可循的,固定的。(比如说,每个Parameter必须对应一个Part,Part的name必须和参转载 2012-04-16 20:03:42 · 2543 阅读 · 0 评论 -
二、CXF 入门示例
二、CXF 入门示例又一HelloWorld示例,老套的HelloWorld是入门经典。也是基础和必须掌握的,下面看看HelloWorldWebService,很简单。需要的jar包如下:1、 HelloWorldService服务器端代码package com.hoo.service; import javax.jws.WebParam;转载 2012-04-16 15:22:26 · 448 阅读 · 0 评论 -
五、CXF WebService整合Spring
五、CXF WebService整合Spring首先,CXF和spring整合需要准备如下jar包文件:这边我是用Spring的jar包是Spring官方提供的,并没有使用CXF中的Spring的jar文件。添加这么多文件后,首先在web.xml中添加如下配置:listener> listener-class>org.springfra转载 2012-04-16 15:21:51 · 501 阅读 · 0 评论 -
web service session
package com.test.session;import org.apache.axis2.context.MessageContext;import org.apache.axis2.context.ServiceContext;public class LoginService {public boolean login(String userna转载 2012-04-05 19:19:46 · 507 阅读 · 0 评论 -
复合类型数据的传递-webservice
在实际的应用中,不仅需要使用WebService来传递简单类型的数据,有时也需要传递更复杂的数据,这些数据可以被称为复合类型的数据。数组与类(接口)是比较常用的复合类型。在Axis2中可以直接使用将WebService方法的参数或返回值类型声明成数组或类(接口)。但要注意,在定义数组类型时只能使用一维数组,如果想传递多维数组,可以使用分隔符进行分隔,如下面的代码所示:String[] strA转载 2012-04-05 15:36:07 · 723 阅读 · 0 评论 -
Web Services Security with Apache Rampart – Part 2 (Message-Level Security)
Apache Rampart is the Axis2 module that provides WS-Security functionality to Axis2 Web services and clients. Rampart currently implements WS-SOAP message security , WS-Security policy , WS-Secure con转载 2012-04-05 13:56:54 · 2377 阅读 · 0 评论 -
Web Services Security with Apache Rampart – Part 1 ( Transport Level Security )
Web Services Security with Apache Rampart – Part 1 ( Transport Level Security )Apache Rampart is the Axis2 module that provides WS-Security functionality to Axis2 Web services an转载 2012-04-05 13:54:32 · 1380 阅读 · 0 评论 -
UsernameToken Authentication with Rampart
Apache Rampart is the Axis2 module that implements the WS-Security functionality based on Apache WSS4J. WS-Security provides multiple ways in which one can authenticate a user when they need to access转载 2012-04-03 17:48:53 · 1216 阅读 · 0 评论 -
Web 服务与 Axis2 体系结构
引言2006 年 5 月推出 Apache Axis2 1.0 是一个大的里程碑。Axis2 1.1 于 2006 年 11 月推出,提供了大量新功能(其中大部分都是其用户最初提出的)以及大量错误修补程序(使其更加稳定)。:从最初的 Apache Axis 和 Apache SOAP 到目前的 Axis2,经历了很大的发展。它不仅更高效、模块化、基于 XML,而且具有灵活性和可扩展性,实现转载 2012-04-09 22:12:28 · 798 阅读 · 0 评论 -
Adding a handler in AXIS2
Adding a handler in AXIS2AXIS2 handler is similar to servlet filter. AXIS2 handler gives you access to MessageContext similar to servlet filter which gives you access to request and response转载 2012-04-09 19:34:18 · 1225 阅读 · 0 评论 -
axis2 soap
单向服务继续讨论之前,让我们了解一下处理单向服务(而非请求/响应服务)时涉及到的不同之处。服务创建单向服务非常简单。此过程与创建请求/响应服务完全类似,至少不会实际返回任何内容。例如,可以为 CMSService类创建 addArticle 操作,如图 29 中所示。清单 29. CMSServiceclass 中的 addArticle 操作转载 2012-04-09 21:40:08 · 2344 阅读 · 0 评论 -
Java Web 服务,第 2 部分: 深度探索 Axis2:AXIOM
为什么需要另一种文档模型?Apache Axis2 1.1 已经发布,它为那些长期运行 Apache Web 服务框架系列的忠实用户提供了令人兴奋的新特性。我们将在后续的文章中讨论关于 Axis2 的内容,本文将深入研究 AXIs 对象模型 (AXIOM) XML 文档模型,这是 Axis2 的核心。AXIOM 是 Axis2 中一个主要的创新,并且是 Axis2 能够比原来的 Axis转载 2012-04-09 23:09:54 · 1142 阅读 · 0 评论 -
一、CXF WebService准备工作
一、CXF WebService准备工作1、 CXF官方网址:http://cxf.apache.org/2、 Jar包下载地址:http://www.apache.org/dyn/closer.cgi?path=/cxf/2.3.3/apache-cxf-2.3.3.zip将下来的jar包解压后,目录大概就这样bin目录提供的是常用的dos控制台命令工具转载 2012-04-16 15:23:40 · 452 阅读 · 0 评论 -
利用axis2将SSH项目发布成Web Service
1. 开发环境eclipse,axis2 war,SSH项目axis2 的eclipse插件:axis2-eclipse-codegen-wizard.zip 用于生成stub本地代码axis2-eclipse-service-archiver-wizard.zip 用于发布web service2. 安装过程1.下载完2个插件的压缩文件后,可以直接把解压后的文件拷贝到ec...原创 2011-12-10 13:28:45 · 165 阅读 · 0 评论