当前位置: 首页>>代码示例>>Java>>正文


Java SOAPBinding.Style方法代码示例

本文整理汇总了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;
   }
 
开发者ID:chtiJBUG,项目名称:wise-webui,代码行数:19,代码来源:ClientHelper.java

示例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;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:37,代码来源:MethodMarshallerFactory.java

示例3: getStyle

import javax.jws.soap.SOAPBinding; //导入方法依赖的package包/类
public SOAPBinding.Style getStyle() {
    return style;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:WSDLBoundPortTypeImpl.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:WebServiceVisitor.java

示例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();
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:WSDLBoundPortType.java


注:本文中的javax.jws.soap.SOAPBinding.Style方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。