本文整理汇总了Java中javax.jws.soap.SOAPBinding.Style方法的典型用法代码示例。如果您正苦于以下问题:Java SOAPBinding.Style方法的具体用法?Java SOAPBinding.Style怎么用?Java SOAPBinding.Style使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.jws.soap.SOAPBinding
的用法示例。
在下文中一共展示了SOAPBinding.Style方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convertOperationParametersToGui
import javax.jws.soap.SOAPBinding; //导入方法依赖的package包/类
public static TreeNodeImpl convertOperationParametersToGui(WSMethod wsMethod, WSDynamicClient client) {
WiseTreeElementBuilder builder = new WiseTreeElementBuilder(client, true);
TreeNodeImpl rootElement = new TreeNodeImpl();
Collection<? extends WebParameter> parameters = wsMethod.getWebParams().values();
SOAPBinding soapBindingAnn = wsMethod.getEndpoint().getUnderlyingObjectClass().getAnnotation(SOAPBinding.class);
boolean rpcLit = false;
if (soapBindingAnn != null) {
SOAPBinding.Style style = soapBindingAnn.style();
rpcLit = style != null && SOAPBinding.Style.RPC.equals(style);
}
for (WebParameter parameter : parameters) {
if (parameter.getMode() != WebParam.Mode.OUT) {
WiseTreeElement wte = builder.buildTreeFromType(parameter.getType(), parameter.getName(), null, !rpcLit);
rootElement.addChild(wte.getId(), wte);
}
}
return rootElement;
}
示例2: createMethodMarshaller
import javax.jws.soap.SOAPBinding; //导入方法依赖的package包/类
/**
* Create Marshaller usining the Binding information
*
* @param style
* @param paramStyle
* @param isPlus used to designated DOCLITWRAPPED plus additional rules (i.e. header
* processing)
* @param isClient
* @return
*/
private static MethodMarshaller createMethodMarshaller(SOAPBinding.Style style,
SOAPBinding.ParameterStyle paramStyle,
SUBTYPE subType,
boolean isClient) { // This flag is for testing only !
if (style == SOAPBinding.Style.RPC) {
return new RPCLitMethodMarshaller();
} else if (paramStyle == SOAPBinding.ParameterStyle.WRAPPED) {
if (subType == SUBTYPE.PLUS) {
// Abnormal case
return new DocLitWrappedPlusMethodMarshaller();
} else if (subType == SUBTYPE.MINIMAL) {
// Abnormal case
return new DocLitWrappedMinimalMethodMarshaller();
} else {
return new DocLitWrappedMethodMarshaller();
}
} else if (paramStyle == SOAPBinding.ParameterStyle.BARE) {
if (subType == SUBTYPE.MINIMAL) {
// Abnormal case
return new DocLitBareMinimalMethodMarshaller();
} else {
return new DocLitBareMethodMarshaller();
}
}
return null;
}
示例3: getStyle
import javax.jws.soap.SOAPBinding; //导入方法依赖的package包/类
public SOAPBinding.Style getStyle() {
return style;
}
示例4: sameStyle
import javax.jws.soap.SOAPBinding; //导入方法依赖的package包/类
public static boolean sameStyle(SOAPBinding.Style style, SOAPStyle soapStyle) {
return style.equals(SOAPBinding.Style.DOCUMENT)
&& soapStyle.equals(SOAPStyle.DOCUMENT)
|| style.equals(SOAPBinding.Style.RPC)
&& soapStyle.equals(SOAPStyle.RPC);
}
示例5: getStyle
import javax.jws.soap.SOAPBinding; //导入方法依赖的package包/类
/**
* Is this a document style or RPC style?
*
* Since we only support literal and not encoding, this means
* either doc/lit or rpc/lit.
*/
@NotNull SOAPBinding.Style getStyle();