मैं परीक्षण के लिए एक इंटरसेप्टर लिखता हूं। लेकिन मुझे इंटरसेप्टर में साबुन संदेश निकाय हमेशा शून्य होता है।सीएक्सएफ आउटगोइंग इंटरसेप्टर साबुन प्रतिक्रिया शरीर प्राप्त करता है जो हमेशा शून्य होता है?
मेरे CXF Apache-CXF-2.4.0
bean.xml इस तरह है:
<cxf:bus>
<cxf:outInterceptors>
<ref bean="myOutSoapInterceptor"/>
</cxf:outInterceptors>
</cxf:bus>
इंटरसेप्टर फ़ाइल:
public class MySoapInterceptorImpl extends AbstractSoapInterceptor implements IMySoapInterceptor {
public MySoapInterceptorImpl()
{
super(Phase.WRITE);
addAfter(SoapOutInterceptor.class.getName());
}
public void handleMessage(SoapMessage msg) throws Fault {
// TODO Auto-generated method stub
String soapContent ;
SOAPMessage sm = msg.getContent(SOAPMessage.class);
/*sm is always null!*/
}
}
मुझे दे सकते हैं:
अधिक जानकारी के लिए इस साइट पर एक नज़र डालें कुछ सुझाव? धन्यवाद! – user809965
क्या आप एसओएपी सामग्री को स्ट्रिंग या ऑब्जेक्ट के रूप में ढूंढ रहे हैं? – ThomasRS