Java Code Examples for javax.jws.soap.SOAPBinding#Style

The following examples show how to use javax.jws.soap.SOAPBinding#Style . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WSDLBoundPortTypeImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public SOAPBinding.Style getStyle() {
    return style;
}
 
Example 2
Source File: WSDLBoundPortTypeImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public SOAPBinding.Style getStyle() {
    return style;
}
 
Example 3
Source File: WebServiceVisitor.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
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);
}
 
Example 4
Source File: WebServiceVisitor.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
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);
}
 
Example 5
Source File: JavaMethod.java    From cxf with Apache License 2.0 4 votes vote down vote up
public void setSoapStyle(SOAPBinding.Style sty) {
    this.soapStyle = sty;
}
 
Example 6
Source File: WSDLBoundPortTypeImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public SOAPBinding.Style getStyle() {
    return style;
}
 
Example 7
Source File: WSDLBoundPortTypeImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public SOAPBinding.Style getStyle() {
    return style;
}
 
Example 8
Source File: WebServiceVisitor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
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);
}
 
Example 9
Source File: BindingAnnotator.java    From cxf with Apache License 2.0 4 votes vote down vote up
private boolean processBinding(JavaInterface intf) {
    SOAPBinding.Style soapStyle = intf.getSOAPStyle();
    SOAPBinding.Use soapUse = intf.getSOAPUse();
    boolean allWrapped = true;
    boolean allBare = true;
    boolean allRPC = true;
    boolean allDOC = true;
    for (JavaMethod method : intf.getMethods()) {
        if (!method.isWrapperStyle()) {
            allWrapped = false;
        } else {
            allBare = false;
        }
        SOAPBinding.Style mStyle = method.getSoapStyle();
        if (mStyle == null) {
            mStyle = soapStyle;
        }
        if (mStyle == null) {
            mStyle = SOAPBinding.Style.DOCUMENT;
        }
        if (soapStyle == null
            && method.getSoapStyle() != null) {
            soapStyle = method.getSoapStyle();
        }
        if (SOAPBinding.Style.DOCUMENT.equals(mStyle)) {
            allRPC = false;
        } else {
            allDOC = false;
        }

        if (soapUse == null
            && method.getSoapUse() != null) {
            soapUse = method.getSoapUse();
        }
    }
    if (allDOC) {
        soapStyle = SOAPBinding.Style.DOCUMENT;
    } else if (allRPC) {
        soapStyle = SOAPBinding.Style.RPC;
    }

    if (soapStyle == SOAPBinding.Style.DOCUMENT) {
        intf.setSOAPStyle(SOAPBinding.Style.DOCUMENT);
        if (allWrapped) {
            intf.setSOAPParameterStyle(SOAPBinding.ParameterStyle.WRAPPED);
        } else if (allBare) {
            intf.setSOAPParameterStyle(SOAPBinding.ParameterStyle.BARE);
        }
    } else if (soapStyle == null) {
        intf.setSOAPStyle(SOAPBinding.Style.DOCUMENT);
        if (allWrapped) {
            intf.setSOAPParameterStyle(SOAPBinding.ParameterStyle.WRAPPED);
        } else if (allBare) {
            intf.setSOAPParameterStyle(SOAPBinding.ParameterStyle.BARE);
        }
    } else {
        intf.setSOAPStyle(SOAPBinding.Style.RPC);
    }
    if (intf.getSOAPParameterStyle() == null) {
        intf.setSOAPParameterStyle(SOAPBinding.ParameterStyle.WRAPPED);
    }
    if (soapUse == SOAPBinding.Use.LITERAL) {
        intf.setSOAPUse(SOAPBinding.Use.LITERAL);
    } else if (soapUse == null) {
        intf.setSOAPUse(SOAPBinding.Use.LITERAL);
    } else {
        intf.setSOAPUse(SOAPBinding.Use.ENCODED);
    }

    return !(intf.getSOAPStyle() == SOAPBinding.Style.DOCUMENT
        && intf.getSOAPUse() == SOAPBinding.Use.LITERAL
        && intf.getSOAPParameterStyle() == SOAPBinding.ParameterStyle.WRAPPED);
}
 
Example 10
Source File: WSDLBoundPortTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public SOAPBinding.Style getStyle() {
    return style;
}
 
Example 11
Source File: WebServiceVisitor.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
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);
}
 
Example 12
Source File: WSDLBoundPortTypeImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public SOAPBinding.Style getStyle() {
    return style;
}
 
Example 13
Source File: WebServiceVisitor.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
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);
}
 
Example 14
Source File: JavaInterface.java    From cxf with Apache License 2.0 4 votes vote down vote up
public void setSOAPStyle(SOAPBinding.Style s) {
    this.soapStyle = s;
}
 
Example 15
Source File: WSDLBoundPortType.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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();
 
Example 16
Source File: WSDLBoundPortType.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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();
 
Example 17
Source File: WSDLBoundPortType.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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();
 
Example 18
Source File: WSDLBoundPortType.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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();
 
Example 19
Source File: WSDLBoundPortType.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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();
 
Example 20
Source File: WSDLBoundPortType.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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();