本文整理了Java中org.apache.axis.MessageContext.setEncodingStyle()
方法的一些代码示例,展示了MessageContext.setEncodingStyle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MessageContext.setEncodingStyle()
方法的具体详情如下:
包路径:org.apache.axis.MessageContext
类名称:MessageContext
方法名:setEncodingStyle
[英]Sets the encoding style to the URI passed in.
[中]将编码样式设置为传入的URI。
代码示例来源:origin: axis/axis
/**
* Sets the encoding style to the URL passed in.
*
* @param namespaceURI URI of the encoding to use.
*/
public void setEncodingStyle(String namespaceURI) {
encodingStyleExplicitlySet = true;
msgContext.setEncodingStyle(namespaceURI);
}
代码示例来源:origin: org.apache.axis/axis
/**
* Sets the encoding style to the URL passed in.
*
* @param namespaceURI URI of the encoding to use.
*/
public void setEncodingStyle(String namespaceURI) {
encodingStyleExplicitlySet = true;
msgContext.setEncodingStyle(namespaceURI);
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Sets the encoding style to the URL passed in.
*
* @param namespaceURI URI of the encoding to use.
*/
public void setEncodingStyle(String namespaceURI) {
encodingStyleExplicitlySet = true;
msgContext.setEncodingStyle(namespaceURI);
}
代码示例来源:origin: axis/axis
value.getClass().getName()}));
setEncodingStyle((String) value);
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
value.getClass().getName()}));
setEncodingStyle((String) value);
代码示例来源:origin: org.apache.axis/axis
value.getClass().getName()}));
setEncodingStyle((String) value);
代码示例来源:origin: axis/axis
/**
* Set the operation use
* @param operationUse
*/
public void setOperationUse(Use operationUse) {
useExplicitlySet = true;
if (operation == null) {
operation = new OperationDesc();
}
operation.setUse(operationUse);
if (!encodingStyleExplicitlySet) {
String encStyle = "";
if (operationUse == Use.ENCODED) {
// RPC style defaults to encoded, otherwise default to literal
encStyle = msgContext.getSOAPConstants().getEncodingURI();
}
msgContext.setEncodingStyle(encStyle);
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Set the operation use
* @param operationUse
*/
public void setOperationUse(Use operationUse) {
useExplicitlySet = true;
if (operation == null) {
operation = new OperationDesc();
}
operation.setUse(operationUse);
if (!encodingStyleExplicitlySet) {
String encStyle = "";
if (operationUse == Use.ENCODED) {
// RPC style defaults to encoded, otherwise default to literal
encStyle = msgContext.getSOAPConstants().getEncodingURI();
}
msgContext.setEncodingStyle(encStyle);
}
}
代码示例来源:origin: org.apache.axis/axis
/**
* Set the operation use
* @param operationUse
*/
public void setOperationUse(Use operationUse) {
useExplicitlySet = true;
if (operation == null) {
operation = new OperationDesc();
}
operation.setUse(operationUse);
if (!encodingStyleExplicitlySet) {
String encStyle = "";
if (operationUse == Use.ENCODED) {
// RPC style defaults to encoded, otherwise default to literal
encStyle = msgContext.getSOAPConstants().getEncodingURI();
}
msgContext.setEncodingStyle(encStyle);
}
}
代码示例来源:origin: org.apache.axis/axis
/**
* Set the operation style
*
* @param operationStyle
*/
public void setOperationStyle(Style operationStyle) {
if (operation == null) {
operation = new OperationDesc();
}
operation.setStyle(operationStyle);
// If no one has explicitly set the use, we should track
// the style. If it's non-RPC, default to LITERAL.
if (!useExplicitlySet) {
if (operationStyle != Style.RPC) {
operation.setUse(Use.LITERAL);
}
}
// If no one has explicitly set the encodingStyle, we should
// track the style. If it's RPC, default to SOAP-ENC, otherwise
// default to "".
if (!encodingStyleExplicitlySet) {
String encStyle = "";
if (operationStyle == Style.RPC) {
// RPC style defaults to encoded, otherwise default to literal
encStyle = msgContext.getSOAPConstants().getEncodingURI();
}
msgContext.setEncodingStyle(encStyle);
}
}
代码示例来源:origin: axis/axis
/**
* Set the operation style
*
* @param operationStyle
*/
public void setOperationStyle(Style operationStyle) {
if (operation == null) {
operation = new OperationDesc();
}
operation.setStyle(operationStyle);
// If no one has explicitly set the use, we should track
// the style. If it's non-RPC, default to LITERAL.
if (!useExplicitlySet) {
if (operationStyle != Style.RPC) {
operation.setUse(Use.LITERAL);
}
}
// If no one has explicitly set the encodingStyle, we should
// track the style. If it's RPC, default to SOAP-ENC, otherwise
// default to "".
if (!encodingStyleExplicitlySet) {
String encStyle = "";
if (operationStyle == Style.RPC) {
// RPC style defaults to encoded, otherwise default to literal
encStyle = msgContext.getSOAPConstants().getEncodingURI();
}
msgContext.setEncodingStyle(encStyle);
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Set the operation style
*
* @param operationStyle
*/
public void setOperationStyle(Style operationStyle) {
if (operation == null) {
operation = new OperationDesc();
}
operation.setStyle(operationStyle);
// If no one has explicitly set the use, we should track
// the style. If it's non-RPC, default to LITERAL.
if (!useExplicitlySet) {
if (operationStyle != Style.RPC) {
operation.setUse(Use.LITERAL);
}
}
// If no one has explicitly set the encodingStyle, we should
// track the style. If it's RPC, default to SOAP-ENC, otherwise
// default to "".
if (!encodingStyleExplicitlySet) {
String encStyle = "";
if (operationStyle == Style.RPC) {
// RPC style defaults to encoded, otherwise default to literal
encStyle = msgContext.getSOAPConstants().getEncodingURI();
}
msgContext.setEncodingStyle(encStyle);
}
}
代码示例来源:origin: axis/axis
setEncodingStyle(service.getUse().getEncoding());
代码示例来源:origin: org.apache.axis/axis
setEncodingStyle(service.getUse().getEncoding());
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
setEncodingStyle(service.getUse().getEncoding());
内容来源于网络,如有侵权,请联系作者删除!