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

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

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

SOAPHeader.addUpgradeHeaderElement介绍

[英]Creates a new Upgrade SOAPHeaderElement object initialized with the specified supported SOAP URI and adds it to this SOAPHeader object. This operation is supported on both SOAP 1.1 and SOAP 1.2 header.
[中]创建一个用指定的受支持的SOAP URI初始化的新升级SOAPHeaderElement对象,并将其添加到此SOAPHeader对象。SOAP 1.1和SOAP 1.2头都支持此操作。

代码示例

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

@Override
public SOAPHeaderElement addUpgradeHeaderElement(SOAPHeader header, String[] supportedSoapUris)
    throws SOAPException {
  return header.addUpgradeHeaderElement(supportedSoapUris);
}

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

@Override
public SoapHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris) {
  try {
    SOAPHeaderElement headerElement =
        getSaajHeader().addUpgradeHeaderElement(supportedSoapUris);
    return new SaajSoapHeaderElement(headerElement);
  }
  catch (SOAPException ex) {
    throw new SaajSoapHeaderException(ex);
  }
}

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

@Override
public SoapHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris) {
  try {
    SOAPHeaderElement headerElement =
        getSaajHeader().addUpgradeHeaderElement(supportedSoapUris);
    return new SaajSoapHeaderElement(headerElement);
  }
  catch (SOAPException ex) {
    throw new SaajSoapHeaderException(ex);
  }
}

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

@Override
public SoapHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris) {
  try {
    SOAPHeaderElement headerElement =
        getSaajHeader().addUpgradeHeaderElement(supportedSoapUris);
    return new SaajSoapHeaderElement(headerElement);
  }
  catch (SOAPException ex) {
    throw new SaajSoapHeaderException(ex);
  }
}

相关文章