Package org.apache.wsdl

Examples of org.apache.wsdl.WSDLInterface


        addPolicyAsExtElements(description, policyList, wsdlEndpoint,
                policyInclude);

        WSDLBinding wsdlBinding = wsdlEndpoint.getBinding();
        populatePolicy(description, wsdlBinding, axisService);
        WSDLInterface wsdlInterface = wsdlBinding.getBoundInterface();
        populatePolicy(description, wsdlInterface, axisService);

    }
View Full Code Here


        namespaceMap.put("xs", "http://www.w3.org/2001/XMLSchema");
        womDescription.setNamespaces(namespaceMap);
        womDescription.setTargetNameSpace(targetNamespece);

        //generating port type
        WSDLInterface portType = generatePortType(womDescription, wsdlComponentFactory, documentElement);
        womDescription.addInterface(portType);

        QName bindingName = new QName(targetNamespece, axisService.getName() + "Binding"
                , targetNamespecheprefix);
        //generating binding
View Full Code Here

                        ExtensionConstants.SCHEMA);
        wsdlTypes.addExtensibilityElement(schemaExtensibilityElement);
        schemaExtensibilityElement.setElement(documentElement);
        womDescription.setTypes(wsdlTypes);

        WSDLInterface portType = womDescription.createInterface();
        portType.setName(new QName(axisService.getName() + "Port"));


        Iterator operations = axisService.getOperations().values().iterator();
        while (operations.hasNext()) {
            AxisOperation axisOperation = (AxisOperation) operations.next();
            if (axisOperation.isControlOperation()) {
                //we do not need to expose control operation in the WSDL
                continue;
            }
            WSDLOperation wsdlOperation = womDescription.createOperation();
            wsdlOperation.setName(axisOperation.getName());

            AxisMessage inaxisMessage = axisOperation.getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
            if (inaxisMessage != null) {
                MessageReference messageRefinput = wsdlComponentFactory.createMessageReference();
                messageRefinput.setElementQName(inaxisMessage.getElementQName());
                messageRefinput.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
                wsdlOperation.setInputMessage(messageRefinput);
            }

            try {
                AxisMessage outaxisMessage = axisOperation.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
                if (outaxisMessage != null && outaxisMessage.getElementQName() != null) {
                    MessageReference messageRefout = wsdlComponentFactory.createMessageReference();
                    messageRefout.setElementQName(outaxisMessage.getElementQName());
                    messageRefout.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
                    wsdlOperation.setOutputMessage(messageRefout);
                }
            } catch (UnsupportedOperationException e) {
                // operation does not have an out message so , no need to do anything here
            }
            portType.setOperation(wsdlOperation);

        }
        return portType;
    }
View Full Code Here

            return all;
        } else {
            Iterator superIterator =
                    this.superInterfaces.values().iterator();
            Iterator operationIterator;
            WSDLInterface superInterface;
            WSDLOperation superInterfaceOperation;
            Iterator thisIterator = all.values().iterator();
            WSDLOperation thisOperation;
            boolean tobeAdded = false;
            while (superIterator.hasNext()) {
                superInterface = (WSDLInterface) superIterator.next();
                operationIterator =
                        superInterface.getAllOperations().values().iterator();
                while (operationIterator.hasNext()) {
                    superInterfaceOperation =
                            (WSDLOperation) operationIterator.next();
                    tobeAdded = true;
                    while (thisIterator.hasNext()) {
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

        if (wsdlBindingPolicy != null) {
            policies.add(getPolicyFromComponent(wsdlBinding));
        }

        //wsdl:portType
        WSDLInterface wsdlInterface = wsdlBinding.getBoundInterface();
        Assertion portTypePolicy = getPolicyFromComponent(wsdlInterface);
        if (portTypePolicy != null) {
            policies.add(getPolicyFromComponent(wsdlInterface));
        }
View Full Code Here

        List extElements = des.getExtensibilityElements();
        registerPoliciesAsElements(extElements);

        iterator = des.getWsdlInterfaces().values().iterator();
        while (iterator.hasNext()) {
            WSDLInterface interfaze = (WSDLInterface) iterator.next();
            registerPoliciesInWSDLInterface(interfaze);
        }

        iterator = des.getBindings().values().iterator();
        while (iterator.hasNext()) {
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

    Document document = getEmptyDocument();
    Element rootElement = document.createElement("stubMethods");

    WSDLService wsdlService = null;
    WSDLInterface wsdlInterface = null;

    if (serviceName != null) {
      wsdlService = womDescription.getService(new QName(serviceName));
    } else {
      for (Iterator iterator = womDescription.getServices().values()
          .iterator(); iterator.hasNext();) {
        wsdlService = (WSDLService) iterator.next();
        serviceName = wsdlService.getName().getLocalPart();
        configuration.setServiceName(serviceName);
        break;
      }
    }

    if (wsdlService != null) {

      String port = configuration.getPortName();
      WSDLEndpoint wsdlEndpoint = null;

      if (port == null) {
        for (Iterator iterator = wsdlService.getEndpoints().values()
            .iterator(); iterator.hasNext();) {
          wsdlEndpoint = (WSDLEndpoint) iterator.next();
          port = wsdlEndpoint.getName().getLocalPart();
          configuration.setPortName(port);
          break;

        }
      } else {
        wsdlEndpoint = wsdlService.getEndpoint(new QName(port));
      }
      if (wsdlEndpoint == null) {
        System.err.println("no wsdl:port found for the service");
        return;
      }

      WSDLBinding wsdlBinding = wsdlEndpoint.getBinding();
      wsdlInterface = wsdlBinding.getBoundInterface();

      for (Iterator iterator = wsdlInterface.getOperations().values()
          .iterator(); iterator.hasNext();) {
        WSDLOperation wsdlOperation = (WSDLOperation) iterator.next();
        Policy policy = util.getPolicyForOperation(wsdlEndpoint.getName(),
            wsdlOperation.getName());
View Full Code Here

    /**
     * Creates the DOM tree for the Ant build. Uses the interface.
     */
    protected Document createDOMDocumentForAntBuild() {
        WSDLInterface wsdlInterface = infoHolder.getWSDLinterface();
        WSDLService service = infoHolder.getService();
        Document doc = getEmptyDocument();
        Element rootElement = doc.createElement("ant");
        String localPart = getCoreClassName(wsdlInterface);
        String packageName = configuration.getPackageName();
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.