javax.jws.soap.SOAPBinding.ParameterStyle Java Examples

The following examples show how to use javax.jws.soap.SOAPBinding.ParameterStyle. 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: WebServiceVisitor.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #2
Source File: WebServiceVisitor.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #3
Source File: JaxWsServiceConfiguration.java    From cxf with Apache License 2.0 6 votes vote down vote up
@Override
public Boolean isWrapped(Method m) {
    // see if someone overrode the default value
    if (getServiceFactory().getWrapped() != null) {
        return getServiceFactory().getWrapped();
    }
    m = getDeclaredMethod(m);

    SOAPBinding ann = m.getAnnotation(SOAPBinding.class);
    if (ann != null) {
        if (ann.style().equals(Style.RPC)) {
            Message message = new Message("SOAPBinding_MESSAGE_RPC", LOG, m.getName());
            throw new Fault(new JaxWsConfigurationException(message));
        }
        return !(ann.parameterStyle().equals(ParameterStyle.BARE));
    }

    return isWrapped();
}
 
Example #4
Source File: WebServiceVisitor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #5
Source File: WebServiceVisitor.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #6
Source File: WebServiceVisitor.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #7
Source File: WebServiceVisitor.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #8
Source File: WebServiceVisitor.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #9
Source File: WebServiceVisitor.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
protected SOAPBinding popSoapBinding() {
    if (pushedSoapBinding)
        soapBindingStack.pop();
    SOAPBinding soapBinding = null;
    if (!soapBindingStack.empty()) {
        soapBinding = soapBindingStack.peek();
        if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
            soapStyle = SOAPStyle.RPC;
            wrapped = true;
        } else {
            soapStyle = SOAPStyle.DOCUMENT;
            wrapped = soapBinding.parameterStyle().equals(ParameterStyle.WRAPPED);
        }
    } else {
            pushedSoapBinding = false;
    }
    return soapBinding;
}
 
Example #10
Source File: JaxWsServiceConfiguration.java    From cxf with Apache License 2.0 5 votes vote down vote up
private boolean isDocumentBare(Method method) {
    SOAPBinding ann = method.getAnnotation(SOAPBinding.class);
    if (ann != null) {
        return ann.style().equals(SOAPBinding.Style.DOCUMENT)
               && ann.parameterStyle().equals(SOAPBinding.ParameterStyle.BARE);
    }
    ann = implInfo.getEndpointClass().getAnnotation(SOAPBinding.class);
    if (ann != null) {
        return ann.style().equals(SOAPBinding.Style.DOCUMENT)
               && ann.parameterStyle().equals(SOAPBinding.ParameterStyle.BARE);
    }
    return false;
}
 
Example #11
Source File: JaxWsServiceConfiguration.java    From cxf with Apache License 2.0 5 votes vote down vote up
@Override
public Boolean isWrapped() {
    SOAPBinding ann = implInfo.getEndpointClass().getAnnotation(SOAPBinding.class);
    if (ann != null) {
        return !(ann.parameterStyle().equals(ParameterStyle.BARE) || ann.style().equals(Style.RPC));
    }
    return null;
}
 
Example #12
Source File: WebServiceVisitor.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}
 
Example #13
Source File: WebServiceVisitor.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}
 
Example #14
Source File: WebServiceVisitor.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}
 
Example #15
Source File: WebServiceVisitor.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}
 
Example #16
Source File: WebServiceVisitor.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}
 
Example #17
Source File: WebServiceVisitor.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}
 
Example #18
Source File: WebServiceVisitor.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}
 
Example #19
Source File: WebServiceVisitor.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ParameterStyle parameterStyle() {
    return SOAPBinding.ParameterStyle.WRAPPED;
}