Examples of SoapOperation


Examples of com.centeractive.ws.builder.SoapOperation

      System.out.println("Temp file could not be deleted");
    }
    List<QName> bindings = parser.getBindings();
    SoapBuilder builder;
    List<SoapOperation> operations;
    SoapOperation operation;
    String bindingName;
    String operationName;
    byte[] xmlRequest;
    List<String> endpoints;
    for (QName i : bindings) {
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

        return getMessage(true) != null && getMessage(false) == null;
    }
   
    public SOAPBinding.Style getSOAPStyle() {
        if (style == null) {
            SOAPOperation soapOperation = getExtensibilityElement(bindingOp.getExtensibilityElements(),
                                                                  SOAPOperation.class);
            if (soapOperation != null
                && soapOperation.getStyle() != null
                && !"".equals(soapOperation.getStyle())) {
                style = SOAPBinding.Style.valueOf(soapOperation.getStyle().toUpperCase());
            }
            if (style == null) {
                style = cache.getStyle();
            }
        }
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

        return getName();
    }
   
    public String getSOAPAction() {
        if (soapAction == null) {
            SOAPOperation soapOp = getExtensibilityElement(bindingOp.getExtensibilityElements(),
                                                           SOAPOperation.class);
            if (soapOp != null) {
                soapAction = soapOp.getSoapActionURI();
            }
            if (soapAction == null) {
                soapAction = "";
            }
        }
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

        String style = "";
        Iterator ite = bop.getExtensibilityElements().iterator();
        while (ite.hasNext()) {
            Object obj = ite.next();
            if (obj instanceof SOAPOperation) {
                SOAPOperation soapOperation = (SOAPOperation)obj;
                style = soapOperation.getStyle();
                break;
            }
        }
        return style;
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

            Iterator ite3 = bop.getExtensibilityElements().iterator();
            while (ite3.hasNext()) {
                Object obj = ite3.next();

                if (obj instanceof SOAPOperation) {
                    SOAPOperation soapOperation = (SOAPOperation)obj;
                    style = soapOperation.getStyle();
                    if (style == null) {
                        style = "";
                    }

                    if ("".equals(bindingStyle) && "".equals(previousOpStyle) || "".equals(bindingStyle)
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

        if (bop.getExtensibilityElements() != null) {
            Iterator ite = bop.getExtensibilityElements().iterator();
            while (ite.hasNext()) {
                Object obj = ite.next();
                if (obj instanceof SOAPOperation) {
                    SOAPOperation soapOP = (SOAPOperation)obj;
                    soapOPProp.put(this.soapOPAction, soapOP.getSoapActionURI());

                    soapOPProp.put(this.soapOPStyle, soapOP.getStyle());
                }
            }
        }
        return soapOPProp;
    }
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

    }

    private void generateBindingOperationInputOutPut(BindingOperation operation, JavaMethod jmethod) {
        // generate soap binding action
        SOAPOperation soapOperation = generateSoapAction();
        soapOperation.setStyle(jmethod.getSoapStyle().name().toLowerCase());
        soapOperation.setSoapActionURI(jmethod.getSoapAction());
        operation.addExtensibilityElement(soapOperation);

        generateInputSoapBody(jmethod, operation, jmethod.getRequest());

        generateOutputSoapBody(jmethod, operation, jmethod.getResponse());
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

        }

    }

    private SOAPOperation generateSoapAction() {
        SOAPOperation soapOperation = null;
        try {
            soapOperation = (SOAPOperation)extensionRegistry
                .createExtension(BindingOperation.class, new QName(WSDLConstants.SOAP11_NAMESPACE,
                                                                   "operation"));
        } catch (WSDLException e) {
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

    private void setSoapOperationExtElement(BindingOperation bo) throws ToolException {
        if (extReg == null) {
            extReg = wsdlFactory.newPopulatedExtensionRegistry();
        }
        SOAPOperation soapOperation = null;
        try {
            soapOperation = (SOAPOperation)extReg.createExtension(BindingOperation.class,
                                                                  WSDLConstants.NS_SOAP_OPERATION);
        } catch (WSDLException wse) {
            Message msg = new Message("FAIL_TO_CREATE_SOAPBINDING", LOG);
            throw new ToolException(msg, wse);
        }
        soapOperation.setStyle((String)env.get(ToolConstants.CFG_STYLE));
        soapOperation.setSoapActionURI("");
        bo.addExtensibilityElement(soapOperation);
    }
View Full Code Here

Examples of javax.wsdl.extensions.soap.SOAPOperation

        Output output = definition.createOutput();
        Message outputMessage = definition.createMessage();
        operation.setOutput(output);
        output.setMessage(outputMessage);
        BindingOperation bindingOperation = definition.createBindingOperation();
        SOAPOperation soapOperation = (SOAPOperation) extensionRegistry.createExtension(BindingOperation.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "operation"));
        soapOperation.setSoapActionURI("actionURI");
        soapOperation.setStyle("rpc");
        bindingOperation.addExtensibilityElement(soapOperation);
        bindingOperation.setOperation(operation);
        bindingOperation.setName(operation.getName());
        BindingInput bindingInput = definition.createBindingInput();
        SOAPBody inputBody = (SOAPBody) extensionRegistry.createExtension(BindingInput.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "body"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.