org.apache.axis.client.Call.addParameterAsHeader()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(624)

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

Call.addParameterAsHeader介绍

[英]Adds a parameter type as a soap:header.
[中]将参数类型添加为soap:header。

代码示例

代码示例来源:origin: axis/axis

/**
 * Adds a parameter type as a soap:header.
 *
 * @param paramName     - Name of the parameter
 * @param xmlType       - XML datatype of the parameter
 * @param parameterMode - Mode of the parameter-whether IN, OUT or INOUT
 * @param headerMode    - Mode of the header. Even if this is an INOUT
 *                      parameter, it need not be in the header in both
 *                      directions.
 * @throws JAXRPCException - if isParameterAndReturnSpecRequired returns
 *                         false, then addParameter MAY throw
 *                         JAXRPCException....actually Axis allows
 *                         modification in such cases
 */
public void addParameterAsHeader(QName paramName, QName xmlType,
                 ParameterMode parameterMode,
                 ParameterMode headerMode) {
  Class javaType = null;
  TypeMapping tm = getTypeMapping();
  if (tm != null) {
    javaType = tm.getClassForQName(xmlType);
  }
  addParameterAsHeader(paramName, xmlType, javaType,
      parameterMode, headerMode);
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Adds a parameter type as a soap:header.
 *
 * @param paramName     - Name of the parameter
 * @param xmlType       - XML datatype of the parameter
 * @param parameterMode - Mode of the parameter-whether IN, OUT or INOUT
 * @param headerMode    - Mode of the header. Even if this is an INOUT
 *                      parameter, it need not be in the header in both
 *                      directions.
 * @throws JAXRPCException - if isParameterAndReturnSpecRequired returns
 *                         false, then addParameter MAY throw
 *                         JAXRPCException....actually Axis allows
 *                         modification in such cases
 */
public void addParameterAsHeader(QName paramName, QName xmlType,
                 ParameterMode parameterMode,
                 ParameterMode headerMode) {
  Class javaType = null;
  TypeMapping tm = getTypeMapping();
  if (tm != null) {
    javaType = tm.getClassForQName(xmlType);
  }
  addParameterAsHeader(paramName, xmlType, javaType,
      parameterMode, headerMode);
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Adds a parameter type as a soap:header.
 *
 * @param paramName     - Name of the parameter
 * @param xmlType       - XML datatype of the parameter
 * @param parameterMode - Mode of the parameter-whether IN, OUT or INOUT
 * @param headerMode    - Mode of the header. Even if this is an INOUT
 *                      parameter, it need not be in the header in both
 *                      directions.
 * @throws JAXRPCException - if isParameterAndReturnSpecRequired returns
 *                         false, then addParameter MAY throw
 *                         JAXRPCException....actually Axis allows
 *                         modification in such cases
 */
public void addParameterAsHeader(QName paramName, QName xmlType,
                 ParameterMode parameterMode,
                 ParameterMode headerMode) {
  Class javaType = null;
  TypeMapping tm = getTypeMapping();
  if (tm != null) {
    javaType = tm.getClassForQName(xmlType);
  }
  addParameterAsHeader(paramName, xmlType, javaType,
      parameterMode, headerMode);
}

代码示例来源:origin: org.apache.axis/axis

this.addParameterAsHeader(p.getQName(), paramType,
      mode, mode);
} else {

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

this.addParameterAsHeader(p.getQName(), paramType,
      mode, mode);
} else {

代码示例来源:origin: axis/axis

this.addParameterAsHeader(p.getQName(), paramType,
      mode, mode);
} else {

相关文章