Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLBinding


     * Creates the DOM tree for the interface creation. Uses the interface.
     */
    protected Document createDOMDocumentForInterface(boolean writeDatabinders) {
        Document doc = getEmptyDocument();
        WSDLInterface wsdlInterface = infoHolder.getPorttype();
        WSDLBinding axisBinding = infoHolder.getBinding();
        Element rootElement = doc.createElement("interface");
        String localPart = getCoreClassName(wsdlInterface);

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
        addAttribute(doc, "name", localPart, rootElement);
View Full Code Here


    /**
     * Creates the DOM tree for implementations.
     */
    protected Document createDOMDocumentForInterfaceImplementation() throws Exception {
        WSDLInterface boundInterface = infoHolder.getPorttype();
        WSDLBinding binding = infoHolder.getBinding();
        String packageName = configuration.getPackageName();
        String localPart = getCoreClassName(boundInterface);
        String stubName = localPart + STUB_SUFFIX;
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("class");
View Full Code Here

        return doc;
    }

    protected Document createDOMDocumentForServiceXML() {
        WSDLInterface boundInterface = infoHolder.getPorttype();
        WSDLBinding axisBinding = infoHolder.getBinding();
        WSDLService service = infoHolder.getService();
        Document doc = getEmptyDocument();
        String coreClassName = getCoreClassName(boundInterface);

        // WSDLEndpoint endpoint = infoHolder.getPort();
View Full Code Here

     */
    protected Document createDOMDocumentForSkeleton() {
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("interface");
        WSDLInterface boundInterface = infoHolder.getPorttype();
        WSDLBinding axisBinding = infoHolder.getBinding();

        // name the skeleton after the binding's name !
        String localpart = getCoreClassName(boundInterface);

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
View Full Code Here

        return doc;
    }

    protected Document createDOMDocumentForTestCase() {
        WSDLInterface boundInterface = infoHolder.getPorttype();
        WSDLBinding binding = infoHolder.getBinding();
        String localPart = getCoreClassName(boundInterface);
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("class");

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
View Full Code Here

        return rootElement;
    }

    protected Document createDocumentForMessageReceiver() {
        WSDLBinding binding = infoHolder.getBinding();
        WSDLInterface boundInterface = infoHolder.getPorttype();
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("interface");

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
View Full Code Here

    /**
     * Emits the skeleton with binding.
     */
    private void emitSkeletonBinding() throws Exception {
        WSDLBinding axisBinding;

        axisBinding = infoHolder.getBinding();

        WSDLInterface wsInterface = infoHolder.getPorttype();

View Full Code Here

                    selectedEndpoint = (WSDLEndpoint) endpoints.values().iterator().next();
                }

                infoHolder.setPort(selectedEndpoint);

                WSDLBinding binding = selectedEndpoint.getBinding();

                infoHolder.setBinding(binding);
                infoHolder.setPorttype(binding.getBoundInterface());
            } else {

                // having no endpoints?? this is surely an exception
                throw new RuntimeException(CodegenMessages.getMessage("emitter.noEndpointsFoundError"));
            }
View Full Code Here

            //just fall through
        } else {
            Collection bindingCollection = bindingMap.values();
            for (Iterator iterator = bindingCollection.iterator(); iterator.hasNext();) {

                WSDLBinding binding = (WSDLBinding) iterator.next();

                WSDLBinding newBinding = wom.createBinding();
                newBinding.setName(AXIS_BINDING_QNAME);

                WSDLInterface boundInterface = binding.getBoundInterface();
                newBinding.setBoundInterface(boundInterface);

                newBinding.setBindingFaults(binding.getBindingFaults());
                newBinding.setBindingOperations(binding.getBindingOperations());
                Iterator elementIterator = binding.getExtensibilityElements().iterator();
                while (elementIterator.hasNext()) {
                    newBinding.addExtensibilityElement(
                            (WSDLExtensibilityElement) elementIterator.next());
                }

                Iterator attributeIterator = binding.getExtensibilityAttributes()
                        .iterator();
                while (attributeIterator.hasNext()) {
                    newBinding.addExtensibleAttributes(
                            (WSDLExtensibilityAttribute) attributeIterator.next());
                }
                bindingVector.add(newBinding);

            }
View Full Code Here

    Map allOptions = this.configuration.getParser().getAllOptions();
        CommandLineOption packageOption = (CommandLineOption)(allOptions.get(CommandLineOptionConstants.PACKAGE_OPTION));
        String packageName = packageOption==null?null:packageOption.getOptionValue();

    if (packageName == null) {
      WSDLBinding binding = configuration.getWom().getBinding(AxisBindingBuilder.AXIS_BINDING_QNAME);
      String temp = binding.getBoundInterface().getName().getNamespaceURI();
      packageName = URLProcessor.getNameSpaceFromURL(temp);
   
   
    if(null == packageName || "".equals(packageName))
      packageName = URLProcessor.DEFAULT_PACKAGE;
View Full Code Here

TOP

Related Classes of org.apache.wsdl.WSDLBinding

Copyright © 2018 www.massapicom. 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.