0
A
回答
0
你刚才NEDD添加LoggingInterceptor:看cxf documentation
Object implementor = new GreeterImpl();
EndpointImpl ep = (EndpointImpl) Endpoint.publish("http://localhost/service", implementor);
ep.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
ep.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor())
或者,如果您使用Springframework
<bean id="quickFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass" value="com.misc.PortType"/>
<property name="address" value="${service.url}"/>
<property name="inInterceptors">
<bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
</property>
<property name="outInterceptors">
<bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
</property>
</bean>
相关问题
- 1. 如何打印SOAP请求?
- 2. 如何打印soap请求(请求使用php curl发送)?
- 3. 如何在Spring W中将SOAP请求消息发送到接受Soap请求消息的服务器?
- 4. 没有打印SOAP调试消息
- 5. 打印SOAP消息的XML内容
- 6. 使用jquery的onvif soap消息请求
- 7. 打开SOAP消息的请求/响应日志
- 8. 如何使CXF SOAP请求在日志文件下打印
- 9. 如何在Java中捕获SOAP请求和响应消息?
- 10. 如何将现有的SOAP请求消息导入到SoapUI?
- 11. 如何获取SOAP请求消息的xml表示?
- 12. 如何打印SOAP消息请求调用服务时使用GSOAP生成的主体
- 13. JS - 从API请求打印JSON信息
- 14. Perl打印消息
- 15. PHP打印消息
- 16. 消息HTTPS请求
- 17. 如何从角度打印出GET请求中的信息
- 18. Tornado如何打印Python SimpleHTTPServer之类的请求信息?
- 19. 如何在使用twitter4j时禁用打印请求信息
- 20. 如何打印httprequest请求的内容?
- 21. 如何基于Ajax请求打印JavaScript?
- 22. 如何打印请求的行数
- 23. 如何打印错误消息
- 24. Python - 如何在ValidationError中打印消息
- 25. 如何在python中打印消息框
- 26. Oracle如何打印一些消息?
- 27. 如何在Makefile中打印消息?
- 28. 如何将char []打印到消息框?
- 29. 如何像SOAP UI请求一样从android构建SOAP请求?
- 30. 如何在SOAP请求
是在SOAPMessage对象的消息? – Kishore 2013-04-23 11:37:27