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. 如何在Spring W中将SOAP请求消息发送到接受Soap请求消息的服务器?
- 2. 打印SOAP消息的XML内容
- 3. 使用jquery的onvif soap消息请求
- 4. 如何将现有的SOAP请求消息导入到SoapUI?
- 5. 如何获取SOAP请求消息的xml表示?
- 6. Perl打印消息
- 7. 如何在使用twitter4j时禁用打印请求信息
- 8. 如何从角度打印出GET请求中的信息
- 9. Tornado如何打印Python SimpleHTTPServer之类的请求信息?
- 10. 如何在Makefile中打印消息?
- 11. 如何在python中打印消息框
- 12. Python - 如何在ValidationError中打印消息
- 13. 如何将char []打印到消息框?
- 14. 如何在Swift中打印请求NSMutableURLRequest
- 15. 如何打印请求的行数
- 16. 如何像SOAP UI请求一样从android构建SOAP请求?
- 17. 如何在SOAP请求
- 18. 如何验证SOAP请求
- 19. 在Soap中打印请求和响应xml
- 20. 如何在Biztalk 2010中构建WCF请求消息的消息
- 21. 获取请求客户端的IP地址(Soap消息)
- 22. dataFormat为POJO时获取请求和响应SOAP消息
- 23. 将SOAP消息标识为请求或响应
- 24. 获取请求的客户端的IP地址(SOAP消息)
- 25. 在请求中添加头文件python中的SOAP消息
- 26. soap消息请求中的方法名称
- 27. 如何在websphere中打印SOAP消息版本的JAX-RPC服务
- 28. 在PyCUDA中打印消息
- 29. C++消息打印多次
- 30. 打印错误消息
是在SOAPMessage对象的消息? – Kishore 2013-04-23 11:37:27