本文整理了Java中org.apache.axis.client.Call.addParameterAsHeader()
方法的一些代码示例,展示了Call.addParameterAsHeader()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Call.addParameterAsHeader()
方法的具体详情如下:
包路径:org.apache.axis.client.Call
类名称: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 {
内容来源于网络,如有侵权,请联系作者删除!