Package javax.wsdl

Examples of javax.wsdl.Output


         */
        public List<XmlSchemaElement> getOutputChildElements() throws InvalidWSDLException {
            if (outputElements != null) {
                return outputElements;
            }
            Output output = operation.getOutput();
            if (output != null) {
                Message outputMsg = output.getMessage();
                Collection parts = outputMsg.getParts().values();
                if (parts.size() != 1) {
                    return null;
                }
                Part part = (Part)parts.iterator().next();
View Full Code Here


        }
        input.setMessage(inputMsg);
        operation.setInput(input);

        if (!op.isNonBlocking()) {
            Output output = definition.createOutput();
            Message outputMsg = definition.createMessage();
            QName outputMsgName = new QName(namespaceURI, op.getName() + "Response");
            outputMsg.setQName(outputMsgName);
            outputMsg.setUndefined(false);
            definition.addMessage(outputMsg);

            if (op.getWrapper() != null) {
                outputMsg.addPart(generateWrapperPart(definition, op, helpers, wrappers, false));
            } else {
               
                if ((op.getOutputType() != null) && ( op.getOutputType().getLogical().size() != 0)) {
                  DataType outputType = op.getOutputType().getLogical().get(0);
                    outputMsg.addPart(generatePart(definition, outputType, "return"));
                    elements = new ArrayList<ElementInfo>();
                    ElementInfo element = getElementInfo(outputType.getPhysical(), outputType, null, helpers);
                    elements.add(element);
                    QName elementName = ((XMLType)outputType.getLogical()).getElementName();
                    wrappers.put(elementName, elements);
                }
            }
            output.setMessage(outputMsg);

            operation.setOutput(output);
            operation.setStyle(OperationType.REQUEST_RESPONSE);
        } else {
            operation.setStyle(OperationType.ONE_WAY);
View Full Code Here

        oper.setInput(input);
        def.addMessage(msg);

        msg = writeResponseMessage(def, desc);
        Output output = def.createOutput();
        output.setMessage(msg);

        // Give the output element a name that matches the
        // message.  This is necessary for overloading.
        // The message QName is unique.
        name = msg.getQName().getLocalPart();
        output.setName(name);
        bindingOper.getBindingOutput().setName(name);

        oper.setOutput(output);
        def.addMessage(msg);
View Full Code Here

                                   bindingEntry,
                                   false);
        }

        // Collect all the output parameters
        Output output = operation.getOutput();
        if (output != null) {
            getParametersFromParts(outputs,
                                   output.getMessage().getOrderedParts(null),
                                   literalOutput,
                                   operation.getName(),
                                   bindingEntry,
                                   true)// output parts
        }
View Full Code Here

        // For each operation, query its input, output, and fault messages
        while (operations.hasNext()) {
            Operation operation = (Operation) operations.next();

            Input input = operation.getInput();
            Output output = operation.getOutput();

            // Find out if this reference is a literal reference or not.
            boolean literalInput = false;
            boolean literalOutput = false;
            if (bEntry != null) {
                literalInput = bEntry.getInputBodyType(operation) ==
                        BindingEntry.USE_LITERAL;
                literalOutput = bEntry.getOutputBodyType(operation) ==
                        BindingEntry.USE_LITERAL;
            }

            // Query the input message
            if (input != null) {
                Message message = input.getMessage();
                if (message != null) {
                    MessageEntry mEntry = getMessageEntry(message.getQName());
                    if (mEntry != null) {
                        setMessageReferences(mEntry, def, doc, literalInput);
                    }
                }
            }

            // Query the output message
            if (output != null) {
                Message message = output.getMessage();
                if (message != null) {
                    MessageEntry mEntry = getMessageEntry(message.getQName());
                    if (mEntry != null) {
                        setMessageReferences(mEntry, def, doc, literalOutput);
                    }
View Full Code Here

        }


        // Get the return type
        ////////////////////////////////////////////////////////////////////
        Output   output  = op.getOutput();
        message = null ;

        if ( output  != null ) message = output.getMessage();
        if ( message != null ) parts   = message.getOrderedParts(null);

//      if (null != paramTypes) // attachments may have no parameters.
        if (operation != null && operation.getNumParams() > 0) // attachments may have no parameters.
          this.setReturnType( XMLType.AXIS_VOID );
View Full Code Here

        operation.setStyle(OperationType.REQUEST_RESPONSE);
        portType.addOperation(operation);
        Input input = definition.createInput();
        input.setName("Input");
        operation.setInput(input);
        Output output = definition.createOutput();
        output.setName("Output");
        operation.setOutput(output);
        Fault fault = definition.createFault();
        fault.setName("Fault");
        operation.addFault(fault);
View Full Code Here

        operation.setStyle(OperationType.REQUEST_RESPONSE);
        portType.addOperation(operation);
        Input input = definition.createInput();
        input.setName("Input");
        operation.setInput(input);
        Output output = definition.createOutput();
        output.setName("Output");
        operation.setOutput(output);
        Fault fault = definition.createFault();
        fault.setName("Fault");
        operation.addFault(fault);
View Full Code Here

        operation.setStyle(OperationType.REQUEST_RESPONSE);
        portType.addOperation(operation);
        Input input = definition.createInput();
        input.setName("Input");
        operation.setInput(input);
        Output output = definition.createOutput();
        output.setName("Output");
        operation.setOutput(output);
        Fault fault = definition.createFault();
        fault.setName("Fault");
        operation.addFault(fault);
View Full Code Here

        inputPart.setName("string");
        inputPart.setTypeName(new QName("http://www.w3.org/2001/XMLSchema", "string"));
        inputMessage.addPart(inputPart);
        operation.setInput(input);
        input.setMessage(inputMessage);
        Output output = definition.createOutput();
        Message outputMessage = definition.createMessage();
        operation.setOutput(output);
        output.setMessage(outputMessage);
        BindingOperation bindingOperation = definition.createBindingOperation();
        SOAPOperation soapOperation = (SOAPOperation) extensionRegistry.createExtension(BindingOperation.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "operation"));
        soapOperation.setSoapActionURI("actionURI");
        soapOperation.setStyle("rpc");
        bindingOperation.addExtensibilityElement(soapOperation);
View Full Code Here

TOP

Related Classes of javax.wsdl.Output

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.