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

The following examples show how to use javax.jws.soap.SOAPBinding.Style#RPC . 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: BindingHelper.java    From syndesis with Apache License 2.0 5 votes vote down vote up
public String getSpecification() throws ParserException {

        // add a SOAP schema to hold wrapper elements, to be removed by soap connector
        final SchemaCollection targetSchemas = new SchemaCollection();
        final XmlSchema soapSchema = targetSchemas.newXmlSchemaInCollection(soapVersion.getEnvelope().getNamespaceURI());
        soapSchema.setElementFormDefault(XmlSchemaForm.QUALIFIED);
        soapSchema.setAttributeFormDefault(XmlSchemaForm.QUALIFIED);

        // extract elements/types from source schema using an XmlSchemaExtractor
        final XmlSchemaExtractor schemaExtractor = new XmlSchemaExtractor(targetSchemas, schemaCollection);

        // TODO also handle faults for output message, which requires an enhancement in Syndesis

        if (style == Style.RPC) {
            final OperationInfo operationInfo = bindingOperation.getOperationInfo();
            final QName operationName = operationInfo.getName();
            final QName wrapperElement = bindingMessageInfo.getMessageInfo().getType() == MessageInfo.Type.INPUT ?
                operationName : new QName(operationName.getNamespaceURI(), operationName.getLocalPart() + "Response");

            createRpcEnvelope(schemaExtractor, wrapperElement);
        } else {
            final List<XmlSchemaElement> bodyElements = getPartElements(schemaExtractor, soapSchema, bodyParts);

            // if topLevel is true, root element was already added to generated schema as top level element
            final List<XmlSchemaElement> headerElements = hasHeaders ? getPartElements(schemaExtractor, soapSchema,
                headerParts) : null;
            createDocumentEnvelope(schemaExtractor, headerElements, bodyElements);
        }

        return getSpecificationString(schemaExtractor);
    }
 
Example 2
Source File: SOAPBinding.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns true if this is a rpc/literal binding
 */
public boolean isRpcLit() {
    return style == Style.RPC && use == Use.LITERAL;
}
 
Example 3
Source File: SOAPBinding.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns true if this is a rpc/literal binding
 */
public boolean isRpcLit() {
    return style == Style.RPC && use == Use.LITERAL;
}
 
Example 4
Source File: WSDLBoundPortTypeImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public boolean isRpcLit(){
    return Style.RPC==style;
}
 
Example 5
Source File: SOAPBinding.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns true if this is a rpc/literal binding
 */
public boolean isRpcLit() {
    return style == Style.RPC && use == Use.LITERAL;
}
 
Example 6
Source File: HelloWrongAnnotation.java    From cxf with Apache License 2.0 4 votes vote down vote up
@SOAPBinding(style = Style.RPC, use = Use.LITERAL)
@WebMethod(operationName = "sayHi", exclude = false)
String sayHi();
 
Example 7
Source File: WSDLBoundPortTypeImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isRpcLit(){
    return Style.RPC==style;
}
 
Example 8
Source File: SOAPBinding.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns true if this is a rpc/literal binding
 */
public boolean isRpcLit() {
    return style == Style.RPC && use == Use.LITERAL;
}
 
Example 9
Source File: SOAPBinding.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns true if this is a rpc/literal binding
 */
public boolean isRpcLit() {
    return style == Style.RPC && use == Use.LITERAL;
}
 
Example 10
Source File: WSDLBoundPortTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean isRpcLit(){
    return Style.RPC==style;
}
 
Example 11
Source File: WSDLBoundPortTypeImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isRpcLit(){
    return Style.RPC==style;
}
 
Example 12
Source File: SOAPBinding.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns true if this is a rpc/literal binding
 */
public boolean isRpcLit() {
    return style == Style.RPC && use == Use.LITERAL;
}
 
Example 13
Source File: WSDLBoundPortTypeImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isRpcLit(){
    return Style.RPC==style;
}
 
Example 14
Source File: WSDLGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determines if a {@link JavaMethod} is rpc/literal
 * @param method The method to check
 * @return true if method is rpc/literal, otherwise, false
 */
protected boolean isRpcLit(JavaMethodImpl method) {
    return method.getBinding().getStyle() == Style.RPC;
}
 
Example 15
Source File: WSDLGenerator.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determines if a {@link JavaMethod} is rpc/literal
 * @param method The method to check
 * @return true if method is rpc/literal, otherwise, false
 */
protected boolean isRpcLit(JavaMethodImpl method) {
    return method.getBinding().getStyle() == Style.RPC;
}
 
Example 16
Source File: WSDLGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determines if a {@link JavaMethod} is rpc/literal
 * @param method The method to check
 * @return true if method is rpc/literal, otherwise, false
 */
protected boolean isRpcLit(JavaMethodImpl method) {
    return method.getBinding().getStyle() == Style.RPC;
}
 
Example 17
Source File: WSDLGenerator.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determines if a {@link JavaMethod} is rpc/literal
 * @param method The method to check
 * @return true if method is rpc/literal, otherwise, false
 */
protected boolean isRpcLit(JavaMethodImpl method) {
    return method.getBinding().getStyle() == Style.RPC;
}
 
Example 18
Source File: WSDLGenerator.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determines if a {@link JavaMethod} is rpc/literal
 * @param method The method to check
 * @return true if method is rpc/literal, otherwise, false
 */
protected boolean isRpcLit(JavaMethodImpl method) {
    return method.getBinding().getStyle() == Style.RPC;
}
 
Example 19
Source File: WSDLGenerator.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determines if a {@link JavaMethod} is rpc/literal
 * @param method The method to check
 * @return true if method is rpc/literal, otherwise, false
 */
protected boolean isRpcLit(JavaMethodImpl method) {
    return method.getBinding().getStyle() == Style.RPC;
}
 
Example 20
Source File: WSDLGenerator.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Determines if a {@link JavaMethod} is rpc/literal
 * @param method The method to check
 * @return true if method is rpc/literal, otherwise, false
 */
protected boolean isRpcLit(JavaMethodImpl method) {
    return method.getBinding().getStyle() == Style.RPC;
}