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

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

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

SOAPHeader.addNotUnderstoodHeaderElement介绍

[英]Creates a new NotUnderstood SOAPHeaderElement object initialized with the specified name and adds it to this SOAPHeader object. This operation is supported only by SOAP 1.2.
[中]创建一个新的NotUnderstandSOAPHeaderElement对象,该对象使用指定的名称初始化,并将其添加到此SOAPHeader对象。只有SOAP 1.2支持此操作。

代码示例

代码示例来源:origin: org.springframework.ws/org.springframework.ws

@Override
public SOAPHeaderElement addNotUnderstoodHeaderElement(SOAPHeader header, QName name) throws SOAPException {
  return header.addNotUnderstoodHeaderElement(name);
}

代码示例来源:origin: spring-projects/spring-ws

@Override
public SoapHeaderElement addNotUnderstoodHeaderElement(QName headerName) {
  try {
    SOAPHeaderElement headerElement =
        getSaajHeader().addNotUnderstoodHeaderElement(headerName);
    return new SaajSoapHeaderElement(headerElement);
  }
  catch (SOAPException ex) {
    throw new SaajSoapHeaderException(ex);
  }
}

代码示例来源:origin: org.springframework.ws/spring-ws-core

@Override
public SoapHeaderElement addNotUnderstoodHeaderElement(QName headerName) {
  try {
    SOAPHeaderElement headerElement =
        getSaajHeader().addNotUnderstoodHeaderElement(headerName);
    return new SaajSoapHeaderElement(headerElement);
  }
  catch (SOAPException ex) {
    throw new SaajSoapHeaderException(ex);
  }
}

代码示例来源:origin: apache/servicemix-bundles

@Override
public SoapHeaderElement addNotUnderstoodHeaderElement(QName headerName) {
  try {
    SOAPHeaderElement headerElement =
        getSaajHeader().addNotUnderstoodHeaderElement(headerName);
    return new SaajSoapHeaderElement(headerElement);
  }
  catch (SOAPException ex) {
    throw new SaajSoapHeaderException(ex);
  }
}

相关文章