Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLInterface


    /**
     * Creates the DOM tree for the Ant build. Uses the interface.
     */
    protected Document createDOMDocumentForAntBuild() {
        WSDLInterface wsdlInterface = infoHolder.getPorttype();
        WSDLService service = infoHolder.getService();
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("ant");
        String localPart = getCoreClassName(wsdlInterface);
        String packageName = configuration.getPackageName();
View Full Code Here


    /**
     * Generates the model for the callbacks.
     */
    protected Document createDOMDocumentForCallbackHandler() {
        Document doc = getEmptyDocument();
        WSDLInterface boundInterface = infoHolder.getPorttype();
        WSDLBinding axisBinding = infoHolder.getBinding();
        Element rootElement = doc.createElement("callback");

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
        addAttribute(doc, "name", getCoreClassName(boundInterface) + CALL_BACK_HANDLER_SUFFIX, rootElement);
        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);

        // TODO JAXRPC mapping support should be considered
        this.loadOperations(boundInterface, doc, rootElement, axisBinding);

        // this.loadOperations(boundInterface, doc, rootElement, "on", "Complete");
View Full Code Here

    /**
     * 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);
        addAttribute(doc, "callbackname", wsdlInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX,
                rootElement);
        fillSyncAttributes(doc, rootElement);
        loadOperations(wsdlInterface, doc, rootElement, axisBinding);

        // ###########################################################################################
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");

        addAttribute(doc, "package", packageName, rootElement);
        addAttribute(doc, "name", stubName, rootElement);
        addAttribute(doc, "servicename", localPart, rootElement);
        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
        addAttribute(doc, "interfaceName", localPart, rootElement);
        addAttribute(doc, "callbackname", localPart + CALL_BACK_HANDLER_SUFFIX, rootElement);

        // add the wrap classes flag
        if (configuration.isPackClasses()) {
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();
        if (service != null) {
            doc.appendChild(getServiceElement(service.getName().getLocalPart(), coreClassName, doc, boundInterface,
                    axisBinding));
        } else {

            // service is missing. However we can derive a service name from the porttype
            doc.appendChild(getServiceElement(boundInterface.getName().getLocalPart(), coreClassName, doc,
                    boundInterface, axisBinding));
        }

        return doc;
    }
View Full Code Here

     * @return Returns documentModel for the skeleton.
     */
    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);
        addAttribute(doc, "name", localpart + SERVICE_CLASS_SUFFIX, rootElement);
        addAttribute(doc, "callbackname", boundInterface.getName().getLocalPart() + CALL_BACK_HANDLER_SUFFIX,
                rootElement);
        fillSyncAttributes(doc, rootElement);
        loadOperations(boundInterface, doc, rootElement, axisBinding);
        doc.appendChild(rootElement);

View Full Code Here

                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();
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);
        addAttribute(doc, "name", localPart + TEST_SUFFIX, rootElement);
        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
        addAttribute(doc, "interfaceName", localPart, rootElement);
        addAttribute(doc, "callbackname", localPart + CALL_BACK_HANDLER_SUFFIX, rootElement);
        addAttribute(doc, "stubname", localPart + STUB_SUFFIX, rootElement);
        addAttribute(doc, "dbsupportpackage", configuration.getPackageName() + DATABINDING_PACKAGE_NAME_SUFFIX,
                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

    private void emitSkeletonBinding() throws Exception {
        WSDLBinding axisBinding;

        axisBinding = infoHolder.getBinding();

        WSDLInterface wsInterface = infoHolder.getPorttype();

        if (axisBinding == null) {

            // asking for a code generation with a binding when a binding is
            // not present should be the cause of an Exception !
View Full Code Here

TOP

Related Classes of org.apache.wsdl.WSDLInterface

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.