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