當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。