压缩 http://opensourceforce.org/forum/viewthread.php?tid=2759
超时和附件上传http://cxf.547215.n5.nabble.com/CXF-client-td597616.html
Handling the Apache CXF Java Client Timeout
If you are using CXF, you can control the client timeout by programmatically obtaining the HTTPConduit from the proxy and setting the ConnectionTimeout and ReceiveTimeout properties.
For example:
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
import com.primavera.ws.p6.job.JobPortType;
//...
JobPortType port = testCase.getJobServicePort();
org.apache.cxf.endpoint.Client client = ClientProxy.getClient(port);
HTTPConduit httpConduit = (HTTPConduit)client.getConduit();
HTTPClientPolicy policy = httpConduit.getClient();
// set time to wait for response in milliseconds. zero means unlimited
policy.setReceiveTimeout(0);
Or, you can control the client timeout by modifying the spring configuration for the client http-conduit file.
Please refer to the CXF User's Guide for information about using the http-conduit file to control the client timeout. At the time of this writing, the CXF User's Guide was available at http://cwiki.apache.org/CXF20DOC.
分享到:
相关推荐
Apache CXF 资料搜集Apache CXF 资料搜集
里面很全的资料,包括wsdl文件结构分析,cxf简单示例,实战Web+Service+with+CXF,cxf_hellow等doc文档另外还有SpringCXF源码以及java-C#的demo
Java分页算法以及一点CXF资料 Java分页算法以及一点Apache CXF webservice 资料
WebSphere Aplication Servic&Portal学习资料/cxf学习资料 超值
Apache Cxf最全网络资料合集 包括实战,理论,特殊功能等资料
CXF各种资料.rar
cxf学习资料,基本教程,啊啊啊啊啊啊啊啊啊啊!
webservice经典学习资料,内容丰富,首先资料
使用Spring整合CXF发布RESTFul项目案例(包含代码)
对于CXF是干什么用的,我不想多说,大家都知道这是我们在java编程中...5. CXF的实现资料网上可以随便找出一大堆,metro的资料相对少一些; 6. CXF在java应用实现中已经很成熟,企业更倾向于用这样一个成熟的解决方案;
做开发时,查了大量资料,发现一比较全面的资料,分享一下! WebService CXF学习——入门篇 1.CXF由来 2.HelloWorld 3.WSDL描述 WebService CXF学习——进阶篇 1.SOAP讲解 2.JAX-WS讲解 3.对象传递 WebService ...
spring与cxf的资料,整合spring与cxf的资料
webservice 经典学习资料,内容详细,深入,首先资料
移动开发,cxf入门的好文档,手持客户端开发资料
详细的从入门到精通, 手把手的教你做WEB SERVICE 该资源借花献佛,是一个高手写的,我在这里借花献佛,推广推广,让大家多一个学习的机会,吃水不忘挖井人,轻大家也谢谢写该文档的高手
CXF开发实例.pdf
CXF处理复杂类型,关于接口的处理,这里是从网上搜索整理的资料,看看吧
cxf入门文档,新手入门,学习帮助资料。cxf从入门到精通
手头上做的java web的项目需要调用.net wcf发布的webservice,查资料看到XFire,Axis2,CXF这三种方式,然后仔细进行了一下对比。资料全来源自网络,不保证完全正确。
一些cxf的资料,带到公司去的,字数字数字数字数字数字数字数字数字数