我是靠谱客的博主 无限小蝴蝶,这篇文章主要介绍设置SOAPFaultException中SOAPFault的内容,现在分享给大家,希望可以做个参考。


public Throwable getCause() {
  SOAPFault fault;
  try {
   fault = SOAPFactory.newInstance().createFault();
   fault.setFaultCode(new QName(String.valueOf(this.getFaultInfo().getModule()), this.getFaultInfo().getErrorCode()));
   fault.setFaultString(this.getFaultInfo().toString());
   SOAPFaultException ex = new SOAPFaultException(fault);
   return ex;
  } catch (SOAPException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
   return super.getCause();
  }
 }

最后

以上就是无限小蝴蝶最近收集整理的关于设置SOAPFaultException中SOAPFault的内容的全部内容,更多相关设置SOAPFaultException中SOAPFault内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(71)

评论列表共有 0 条评论

立即
投稿
返回
顶部