I'm working on the client side where I have generated classes from wsdl and @Service which calls methods of @WebService generated from the wsdl. My task is to get soap header which is returned when I call method on the server. I have implemented interceptor, marked it as a bean in cxf client configuration. How can I now get the header?
我正在客户端工作,我从wsdl和@Service生成类,它调用从wsdl生成的@WebService方法。我的任务是获取在服务器上调用方法时返回的soap标头。我已经实现了拦截器,在cxf客户端配置中将其标记为bean。我怎么能得到标题?
Thanks in advance for your help.
在此先感谢您的帮助。
0
I hope you have written SoapActionInInterceptor
in READ
phase. Then when you override handleMessage
method you will have SoapMessage
as its parameter and you can take the Soap Header also from it. Check Apache CXF Guide for more reference
我希望你在READ阶段写过SoapActionInInterceptor。然后,当您重写handleMessage方法时,您将使用SoapMessage作为其参数,您也可以从中获取Soap Header。查看Apache CXF指南以获取更多参考
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2017/07/06/71ed831bf42a2f7b0faba163ae299a98.html。