Package javax.wsdl

Examples of javax.wsdl.Binding.addExtensibilityElement()


            Document doc = dImpl.createDocument(WSDLConstants.WSP_NAMESPACE, "Misc", null);

            UnknownExtensibilityElement exEle = new UnknownExtensibilityElement();
            exEle.setElement(doc.createElementNS("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:UsingAddressing"));
            exEle.setElementType(new QName("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:UsingAddressing"));
            binding.addExtensibilityElement(exEle);

            while (opIt.hasNext()) {
                Operation operation = (Operation) opIt.next();

                /*
 
View Full Code Here


        binding.setQName(new QName(NAMESPACE, "MockPortBinding"));
        //add soap:binding
        SOAPBinding soapBinding = (SOAPBinding) extensionRegistry.createExtension(Binding.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "binding"));
        soapBinding.setTransportURI("http://schemas.xmlsoap.org/soap/http");
        soapBinding.setStyle("rpc");
        binding.addExtensibilityElement(soapBinding);
        binding.addBindingOperation(bindingOperation);
        PortType portType = definition.createPortType();
        portType.setQName(new QName(NAMESPACE, "MockPort"));
        portType.addOperation(bindingOperation.getOperation());
        binding.setPortType(portType);
View Full Code Here

                ((SOAP12Binding)bindingExtension).setTransportURI("http://schemas.xmlsoap.org/soap/http");
            } else {
                ((SOAPBinding)bindingExtension).setStyle("document");
                ((SOAPBinding)bindingExtension).setTransportURI("http://schemas.xmlsoap.org/soap/http");
            }
            binding.addExtensibilityElement(bindingExtension);
            return binding;
        } catch (WSDLException e) {
            throw new WSDLGenerationException(e);
        }
    }
View Full Code Here

                .createExtension(Binding.class, CorbaConstants.NE_CORBA_BINDING);
            bindingType.setRepositoryID(repoString
                                        + binding.getPortType().getQName().getLocalPart().replace('.', '/')
                                        + idlversion);

            binding.addExtensibilityElement(bindingType);
        } catch (WSDLException ex) {
            ex.printStackTrace();
        }

        try {
View Full Code Here

                bindingOperation.setBindingInput(bindingInput);
                bindingOperation.setBindingOutput(bindingOutput);
                binding.addBindingOperation(bindingOperation);

                if (opLevelPolicRef != null) {
                    binding.addExtensibilityElement(opLevelPolicRef);
                }

            }
            def.addPortType(wsdlPortType);
View Full Code Here

        binding.setPortType(portType);

        SOAPBindingImpl soapBindingImpl = new SOAPBindingImpl();
        soapBindingImpl.setStyle(DOCUMENT);
        soapBindingImpl.setTransportURI(SOAP_HTTP_NAMESPACE);
        binding.addExtensibilityElement(soapBindingImpl);
        if (wsPolicyRef != null) {
            log.info("policy info is not null");
            binding.addExtensibilityElement(wsPolicyRef);
        }
View Full Code Here

        soapBindingImpl.setStyle(DOCUMENT);
        soapBindingImpl.setTransportURI(SOAP_HTTP_NAMESPACE);
        binding.addExtensibilityElement(soapBindingImpl);
        if (wsPolicyRef != null) {
            log.info("policy info is not null");
            binding.addExtensibilityElement(wsPolicyRef);
        }

        Document doc = dImpl.createDocument(WSP_NAMESPACE, "Misc", null);

        UnknownExtensibilityElement exEle = new UnknownExtensibilityElement();
View Full Code Here

        Document doc = dImpl.createDocument(WSP_NAMESPACE, "Misc", null);

        UnknownExtensibilityElement exEle = new UnknownExtensibilityElement();
        exEle.setElement(doc.createElementNS("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:UsingAddressing"));
        exEle.setElementType(new QName("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:UsingAddressing"));
        binding.addExtensibilityElement(exEle);

        return binding;
    }

    public static void createMetadata(InputParameterType inparam, Document doc, Element annotation) {
View Full Code Here

                binding = (Binding) itr_bindings.next();
                binding.getExtensibilityElements().clear();
                javax.wsdl.extensions.soap.SOAPBinding soapBinding = new SOAPBindingImpl();
                soapBinding.setStyle("document");
                soapBinding.setTransportURI(Constants.URI_SOAP11_HTTP);
                binding.addExtensibilityElement(soapBinding);

                Iterator bin_ops = binding.getBindingOperations().iterator();
                while (bin_ops.hasNext()) {
                    BindingOperation bindingOperation = (BindingOperation) bin_ops.next();
                    bindingOperation.getExtensibilityElements().clear();
View Full Code Here

        binding.setQName(new QName(NAMESPACE, "MockPortBinding"));
        //add soap:binding
        SOAPBinding soapBinding = (SOAPBinding) extensionRegistry.createExtension(Binding.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "binding"));
        soapBinding.setTransportURI("http://schemas.xmlsoap.org/soap/http");
        soapBinding.setStyle("rpc");
        binding.addExtensibilityElement(soapBinding);
        binding.addBindingOperation(bindingOperation);
        PortType portType = definition.createPortType();
        portType.setQName(new QName(NAMESPACE, "MockPort"));
        portType.addOperation(bindingOperation.getOperation());
        binding.setPortType(portType);
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.