javax.xml.soap.SOAPElement.removeChild()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(69)

本文整理了Java中javax.xml.soap.SOAPElement.removeChild()方法的一些代码示例,展示了SOAPElement.removeChild()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPElement.removeChild()方法的具体详情如下:
包路径:javax.xml.soap.SOAPElement
类名称:SOAPElement
方法名:removeChild

SOAPElement.removeChild介绍

暂无

代码示例

代码示例来源:origin: com.hynnet/xws-security

public Node removeChild(Node arg0) throws DOMException {
  return delegateHeader.removeChild(arg0);
}

代码示例来源:origin: com.hynnet/xws-security

public Node removeChild(Node arg0) throws DOMException {
  return delegateElement.removeChild(arg0);
}

代码示例来源:origin: com.hynnet/xws-security

public Node removeChild(Node oldChild) throws DOMException {
  return delegateElement.removeChild(oldChild);
}

代码示例来源:origin: com.hynnet/xws-security

public Node removeChild(Node arg0) throws DOMException {
  return delegateElement.removeChild(arg0);
}

代码示例来源:origin: fcrepo3/fcrepo

/**
 * Sets the return object for a response as the param.
 *
 * @param context
 *        the message context
 * @param newResponse
 *        the object to set as the return object
 * @throws SoapFault
 */
protected void setSOAPResponseObject(SOAPMessageContext context,
                   Object newResponse) {
  if (newResponse == null) {
    return;
  }
  // Extract the SOAP Message
  SOAPMessage message = context.getMessage();
  // Get the envelope body
  SOAPElement body;
  try {
    body = message.getSOAPBody();
    SOAPElement response = getSOAPResponseNode(context);
    body.removeChild(response);
    marshall(newResponse, body);
  } catch (SOAPException e) {
    logger.error("Problem changing SOAP message contents", e);
    throw CXFUtility.getFault(e);
  }
}

相关文章

微信公众号

最新文章

更多