Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLInterface


    /**
     * Generates the model for the callbacks.
     */
    protected Document createDOMDocumentForCallbackHandler() {
        Document doc = getEmptyDocument();
        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        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.getWSDLinterface();
        WSDLBinding axisBinding = infoHolder.getBinding();
        Element rootElement = doc.createElement("interface");
        String localPart = getCoreClassName(wsdlInterface);

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

    /**
     * Creates the DOM tree for implementations.
     */
    protected Document createDOMDocumentForInterfaceImplementation() throws Exception {

        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        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

        doc.appendChild(rootElement);
        return doc;
    }

    protected Document createDOMDocumentForServiceXML() {
        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        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 WSDLinterface
            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.getWSDLinterface();
        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

        return doc;
    }

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

        addAttribute(doc, "package", configuration.getPackageName(), rootElement);
        addAttribute(doc, "name", coreClassName + TEST_SUFFIX, rootElement);
        addAttribute(doc, "namespace", boundInterface.getName().getNamespaceURI(), rootElement);
        addAttribute(doc, "interfaceName", coreClassName, rootElement);
        addAttribute(doc, "callbackname", coreClassName + CALL_BACK_HANDLER_SUFFIX, rootElement);
        addAttribute(doc, "stubname", coreClassName + STUB_SUFFIX, rootElement);

        fillSyncAttributes(doc, rootElement);
View Full Code Here

    }

    protected Document createDocumentForMessageReceiver(String mep) {

        WSDLBinding binding = infoHolder.getBinding();
        WSDLInterface boundInterface = infoHolder.getWSDLinterface();
        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.getWSDLinterface();

        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

     * Emits the stubcode with bindings.
     *
     * @throws Exception
     */
    private void emitStubBinding() throws Exception {
        WSDLInterface axisInterface = infoHolder.getWSDLinterface();

        // see the comment at updateMapperClassnames for details and reasons for
        // calling this method
        if (mapper.isObjectMappingPresent()) {
            updateMapperForStub(axisInterface);
View Full Code Here

     * Emits the stub code with interfaces only.
     *
     * @throws Exception
     */
    private void emitStubInterface() throws Exception {
        WSDLInterface axisInterface = infoHolder.getWSDLinterface();

        if (mapper.isObjectMappingPresent()) {
            updateMapperForInterface(axisInterface);
        }

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.