AbstractPhaseInterceptor获得身体和第一屈服

时间:2018-07-17 15:24:17

标签: java validation dom soap cxf

我有拦截器

public class MyInValidatingInterceptor extends AbstractPhaseInterceptor<Message> {

  //in constructor
  super(Phase.USER_LOGICAL);

  ...

  @Override
  public void handleMessage(Message message) throws Fault {

  List body = message.getContent(List.class);//get body
  Object o = body.get(0);//get first chield

如何将第一收益率转换为javax.xml.transform.Source

P.S如何使用Message方法从handleMessage正确获取身体和第一位躯体?

我尝试了public void handleMessage(SoapMessage soapMessage)

SOAPMessage message = soapMessage.getContent(SOAPMessage.class);总是NULL

0 个答案:

没有答案