- 博客(13)
- 资源 (1)
- 收藏
- 关注
转载 Apache CXF 在 WebLogic 9.2 上的问题定位分析及权宜之计
同样的程序在 Tomcat 5.5.16/25 以及 Jetty 5.1.12 上都能够成功部署及运行,但是部署到 WebLogic 9.2 上时出错 org.springframework.web.context.ContextLoader initWebApplicationContext FATAL: Context initialization failed org.springfr
2009-02-17 22:33:00
765
1
转载 我眼中的CXF之 Interceptor (下)
下面给大家介绍一下Interceptor的一个使用实例,如果通过Interceptor来获取CXF的性能数据。我们知道CXF通过Interceptor处理着各种不同不样的消息信息,如果我们能在这些消息中设置时间戳信息,那我们就可以很容易地获取到这些消息在 不同地阶段处理所耗费的时间信息,通过对这些时间戳信息的处理,我们可以很容易就获取到CXF运行时的性能数据了。接下来我们看看CXF中管理模块是如
2009-02-17 22:32:00
869
转载 我眼中的CXF之 Interceptor (上)
我眼中的CXF之 Interceptor (上)Interceptor是CXF架构中一个很有特色的模式。你可以在不对核心模块进行修改的情况下,动态添加很多功能。这对于CXF这个以处理消息为中心的服务框架来说是非常有用的,CXF通过在Interceptor中对消息进行特殊处理,实现了很多重要功能模块,例如:日志记录,Soap消息处理,消息的压缩处理。如果你想对CXF进行扩展,建议你先从inter
2009-02-17 22:28:00
721
转载 CXF发布服务的方式
Setting up your web.xmlTo set up CXF to use a Servlet youll need to add the CXFServlet to your web.xml:"1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc
2009-02-13 08:15:00
1995
1
转载 CXF使用拦截器和XSLT转换消息内容
还是接着上次的WebService接口设计的问题,为了提高易用性,需要在接收到消息的时候按照指定的xslt把接收到的soap消息转换为期望的格式。这样对客户端来说更加友好,但是服务器端的工作无疑是加大了呵呵。本着公司服务为先的理念,再难再险也要上啊。 参考了cxf自带的例子(configuration_interceptor),然后加上了自己需要的xslt转换功能,就这样大功告成了。整个过
2009-02-02 16:13:00
1643
1
转载 一个base auth认证的实例
客户端的的请求: ApplicationContext context = new ClassPathXmlApplicationContext( "com/javaeye/security/clientAppContext.xml"); HelloWorld proxy = (HelloWorld)
2009-02-02 09:53:00
2690
转载 理解JAX-WS中Handlers
JAX-WS提供插件式框架,通过handlers去加强运行的处理能力。Handlers是一个消息拦截器,能够在你的web service前后进行处理。JAX-WS定义了两种类型的handlers,分别为logical handlers and protocol handlers. Protocol handlers are specific to a protocol and may acces
2009-02-02 07:44:00
2913
转载 CXF与spring集成
1. 新建web project ,并加入apache-cxf-2.0.7/lib所有包,编写要发布的web service 接口和实现.这一步,与前面一样。import javax.jws.WebService;@WebService public interface HelloWorld { public String sayHello(String te
2009-02-02 07:39:00
324
转载 SOAP headers
When the WSDL you are compiling specifies that some parts of a message are bound to SOAP headers, wsimport generates the right stuff (@WebParam(header=true)), so you can pass headers as arguments to t
2009-02-02 07:33:00
972
转载 Using implicit SOAP headers with JAX-WS web services
StrikeIron offers two authentication methods for its for-pay web services, a "SOAP Header" authentication method and a "Non-SOAP Header" one (you can see examples of both in the WSDL section of the
2009-02-01 23:46:00
941
转载 CXF与spring集成
1. 新建web project ,并加入apache-cxf-2.0.7/lib所有包,编写要发布的web service 接口和实现.这一步,与前面一样。import javax.jws.WebService;@WebService public interface HelloWorld { public String sayHello(String
2009-02-01 23:40:00
497
转载 CXF学习笔记---让通过参数传递数据
整整折腾了3天终于通过CXF进行参数传递了。CXF的文档和sample都是存在问题的。这么一些简单的常用内容,硬是找不着。opensource的弊病。 目地: 通过webservice传递值以及错误信息。true:取result值,false:取errorNum和errorMsg 【Server】 1、Interface Java代码 @WebService publ
2009-02-01 23:23:00
2079
转载 采用JAX-WS Annotated Services from Java+JAXB发布获取web service
CXF有多种数据绑定方式,如:Aegis Databinding,JAXB,MTOM Attachments . 其中JAXB(JavaTM Architecture for XML Binding)是其默认的数据绑定方式。JAXB是一套自动映射XML和Java实例的开发接口和工具。如果web Service发布的接口为: String sayUserHello(User user);
2009-02-01 23:16:00
738
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人