0
是否有可能通過CXF發送自定義頭的屬性mustunderstand = true?Apache CXF發送自定義頭mustunderstand = true
我無處可以找到有關該主題的信息。
親切的問候 阿里
是否有可能通過CXF發送自定義頭的屬性mustunderstand = true?Apache CXF發送自定義頭mustunderstand = true
我無處可以找到有關該主題的信息。
親切的問候 阿里
我找到了解決辦法。
我們的方法首先是WSDL。我們通過帶有-exsh = true的wsdl2java生成了我們的工件,它提供了通過生成的API設置標題數據的可能性。通過生成的API設置標題數據,無法設置「mustunderstand」標誌。
我們現在經由
ctx.put(Header.HEADER_LIST, headersList);
產生的僞影,而不 「exsh =真」,並設置標頭添加到RequestContet。
注:headersList是包含
org.apache.cxf.binding.soap.SoapHeader
對象,你可以設置 「的mustUnderstand」 標誌的列表。
乾杯, 阿里