Examples of BindingOperation


Examples of com.sun.tools.internal.ws.wsdl.document.BindingOperation

                }
                gotDocumentation = true;
                binding.setDocumentation(getDocumentationFor(e2));
            } else if (
                XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) {
                BindingOperation op = parseBindingOperation(context, e2);
                binding.add(op);
            } else {
                // possible extensibility element -- must live outside the WSDL namespace
                checkNotWsdlElement(e2);
                if (!handleExtension(context, binding, e2)) {
View Full Code Here

Examples of com.sun.tools.ws.wsdl.document.BindingOperation

                }
                gotDocumentation = true;
                binding.setDocumentation(getDocumentationFor(e2));
            } else if (
                XmlUtil.matchesTagNS(e2, WSDLConstants.QNAME_OPERATION)) {
                BindingOperation op = parseBindingOperation(context, e2);
                binding.add(op);
            } else {
                // possible extensibility element -- must live outside the WSDL namespace
                checkNotWsdlElement(e2);
                if (!handleExtension(context, binding, e2)) {
View Full Code Here

Examples of javax.wsdl.BindingOperation

        Iterator itBinding = def.getBindings().keySet().iterator();
        while (itBinding.hasNext()) {
            Binding binding = (Binding)def.getBindings().get(itBinding.next());
            Iterator itOperation = binding.getBindingOperations().iterator();
            while (itOperation.hasNext()) {
                BindingOperation bindingOperation = (BindingOperation)itOperation.next();
                Iterator itInputExt = bindingOperation.getBindingInput().getExtensibilityElements()
                    .iterator();
                while (itInputExt.hasNext()) {
                    ExtensibilityElement extElement = (ExtensibilityElement)itInputExt.next();
                    if (extElement instanceof MIMEMultipartRelated) {
                        Iterator itMimeParts = ((MIMEMultipartRelated)extElement).getMIMEParts()
                            .iterator();
                        if (!doValidate(itMimeParts, bindingOperation.getName())) {
                            return false;
                        }
                    }
                }
            }
View Full Code Here

Examples of javax.wsdl.BindingOperation

            while (ite.hasNext()) {
                Operation operation = (Operation)ite.next();
                if (isOverloading(operation.getName())) {
                    continue;
                }
                BindingOperation bop = wsdlHelper.getBindingOperation(def, operation.getName());
                Binding binding = wsdlHelper.getBinding(bop, def);
                String bindingStyle = binding != null ? wsdlHelper.getBindingStyle(binding) : "";

                String style = "".equals(wsdlHelper.getSOAPOperationStyle(bop))
                    ? bindingStyle : wsdlHelper.getSOAPOperationStyle(bop);
View Full Code Here

Examples of javax.wsdl.BindingOperation

                operationList.addAll(operationMap.keySet());

                // bindingOperationList
                Iterator ite = binding.getBindingOperations().iterator();
                while (ite.hasNext()) {
                    BindingOperation bop = (BindingOperation)ite.next();
                    QName bopName = new QName(def.getTargetNamespace(), bop.getName());

                    if (!operationList.contains(bopName)) {

                        Node errNode = ErrNodeLocator.getNode(document, WSDLConstants.QNAME_BINDING,
                                                              bindingName.getLocalPart(), bop.getName());
                        schemaWSDLValidator.addError(errNode, "BindingOperation " + bop.getName()
                                                              + " is not defined");

                        isValid = false;

                    } else {
                        Operation op = operationMap.get(bopName);

                        if (op.getInput() == null && bop.getBindingInput() != null) {
                            Node errNode = ErrNodeLocator.getNode(document, WSDLConstants.QNAME_BINDING,
                                                                  bindingName.getLocalPart(), bop.getName());
                            schemaWSDLValidator.addError(errNode, "BindingOperation " + bop.getName()
                                                                  + " binding input is not defined");
                            isValid = false;
                        }

                        if (op.getInput() != null && bop.getBindingInput() == null) {
                            Node errNode = ErrNodeLocator.getNode(document, WSDLConstants.QNAME_BINDING,
                                                                  bindingName.getLocalPart(), bop.getName());
                            schemaWSDLValidator.addError(errNode, "BindingOperation " + bop.getName()
                                                                  + " binding input is not resolved");

                            isValid = false;
                        }

                        if (op.getOutput() == null && bop.getBindingOutput() != null) {
                            Node errNode = ErrNodeLocator.getNode(document, WSDLConstants.QNAME_BINDING,
                                                                  bindingName.getLocalPart(), bop.getName());
                            schemaWSDLValidator.addError(errNode, "BindingOperation " + bop.getName()
                                                                  + " binding output is not defined");
                            isValid = false;
                        }

                        if (op.getOutput() != null && bop.getBindingOutput() == null) {
                            Node errNode = ErrNodeLocator.getNode(document, WSDLConstants.QNAME_BINDING,
                                                                  bindingName.getLocalPart(), bop.getName());
                            schemaWSDLValidator.addError(errNode, "BindingOperation " + bop.getName()
                                                                  + " binding output is not resolved");

                            isValid = false;
                        }

                        if (op.getFaults().size() != bop.getBindingFaults().size()) {
                            Node errNode = ErrNodeLocator.getNode(document, WSDLConstants.QNAME_BINDING,
                                                                  bindingName.getLocalPart(), bop.getName());
                            schemaWSDLValidator.addError(errNode, "BindingOperation " + bop.getName()
                                                                  + " binding fault resolved error");
                            isValid = false;
                        }

                    }
View Full Code Here

Examples of javax.wsdl.BindingOperation

   
    public Map<String, WSDLOperationInfo> getAllOperationInfo() {
        if (allOperationInfo == null) {
            allOperationInfo = new HashMap<String, WSDLOperationInfo>();
            for (Iterator it = binding.getBindingOperations().iterator(); it.hasNext();) {
                final BindingOperation bindingOperation = (BindingOperation)it.next();
                if (bindingOperation.getOperation() != null) {
                    WSDLOperationInfo data = new WSDLOperationInfo(this,
                                                                   bindingOperation);
                    allOperationInfo.put(data.getName(), data);
                }
            }
View Full Code Here

Examples of javax.wsdl.BindingOperation

            }
        }
    }

    private void addWrapperRoot(XMLMessage xmlMessage, DataBindingCallback callback) throws WSDLException {
        BindingOperation operation = getBindingOperation(callback.getOperationName());
       
        BindingInput input = operation.getBindingInput();

        TBody xmlBinding = null;
        Iterator ite = input.getExtensibilityElements().iterator();
        while (ite.hasNext()) {
            Object obj = ite.next();
View Full Code Here

Examples of javax.wsdl.BindingOperation

        }
    }

    private void addReturnWrapperRoot(XMLMessage xmlMessage,
                                      DataBindingCallback callback) throws WSDLException {
        BindingOperation operation = getBindingOperation(callback.getOperationName());

        BindingOutput output = operation.getBindingOutput();
        TBody xmlBinding = null;
        Iterator ite = output.getExtensibilityElements().iterator();
        while (ite.hasNext()) {
            Object obj = ite.next();
            if (obj instanceof TBody) {
View Full Code Here

Examples of javax.wsdl.BindingOperation

        }
        Port port = EndpointReferenceUtils.getPort(bus.getWSDLManager(), reference);
        List ops = port.getBinding().getBindingOperations();
        Iterator opIt = ops.iterator();
        while (opIt.hasNext()) {
            BindingOperation op = (BindingOperation)opIt.next();
            BindingInput bindingInput = op.getBindingInput();
            List elements = bindingInput.getExtensibilityElements();
            QName qn = new QName(def.getTargetNamespace(), op.getName());
            for (Iterator i = elements.iterator(); i.hasNext();) {
                Object element = i.next();
                if (SOAPBody.class.isInstance(element)) {
                    SOAPBody body = (SOAPBody)element;
                    if (body.getNamespaceURI() != null) {
                        qn = new QName(body.getNamespaceURI(), op.getName());
                    }
                }
            }
           
            ServerDataBindingCallback cb = getDataBindingCallback(qn, null,
View Full Code Here

Examples of javax.wsdl.BindingOperation

        Iterator ite = def.getBindings().values().iterator();
        while (ite.hasNext()) {
            Binding binding = (Binding)ite.next();
            Iterator ite1 = binding.getBindingOperations().iterator();
            while (ite1.hasNext()) {
                BindingOperation bop = (BindingOperation)ite1.next();
                if (bop.getName().equals(operationName)) {
                    return bop;
                }
            }
        }
        return null;
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.