Package javax.wsdl

Examples of javax.wsdl.Output


                                schemaWSDLValidator.addError(errNode, " input : " + input.getName()
                                                                      + " reference is not defined");
                                isValid = false;
                            }

                            Output output = operation.getOutput();
                            if (output != null && output.getMessage() != null
                                && !msgPartsMap.containsKey(output.getMessage().getQName())) {
                                Node errNode = ErrNodeLocator.getNode(document,
                                                                      WSDLConstants.QNAME_OPERATION,
                                                                      operation.getName(), output.getName());
                                schemaWSDLValidator.addError(errNode, " output : " + output.getName()
                                                                      + " reference is not defined");
                                isValid = false;
                            }

                            Map faultMap = operation.getFaults();
View Full Code Here


        if (isInput) {
            final Input input = operation.getInput();
            return input == null ? null : input.getMessage();
        }
        final Output output = operation.getOutput();
        return output == null ? null : output.getMessage();
    }
View Full Code Here

    private void initRPCLitParam(List<OperationWebParam> parms,
                                 Map<String, OperationWebParam> parmMap,
                                 Operation operation) {
       
        Input input = operation.getInput();
        Output output = operation.getOutput();
        if (input == null) {
            //unsupported op type, output only
            return;
        }
        Collection parts = input.getMessage().getParts().values();
        for (Iterator i = parts.iterator(); i.hasNext();) {
            Part part = (Part)i.next();
            OperationWebParam p = new OperationWebParam(part.getName(),
                                                        part.getName(),
                                                        Mode.IN,
                                                        "",
                                                        cache.getTargetNamespace());
            parms.add(p);
            parmMap.put(part.getName(), p);
        }
        if (output != null) {
            parts = output.getMessage().getParts().values();
            for (Iterator i = parts.iterator(); i.hasNext();) {
                Part part = (Part)i.next();
               
                OperationWebParam p = parmMap.get(part.getName());
                if (p == null) {
View Full Code Here

    private void initDocLitBareParam(List<OperationWebParam> parms,
                                     Map<String, OperationWebParam> parmMap,
                                     Operation operation) {
       
        Input input = operation.getInput();
        Output output = operation.getOutput();
        Collection parts = input.getMessage().getParts().values();
        for (Iterator i = parts.iterator(); i.hasNext();) {
            Part part = (Part)i.next();
            OperationWebParam p = new OperationWebParam(part.getElementName().getLocalPart(),
                                                        part.getName(),
                                                        Mode.IN,
                                                        part.getElementName().getNamespaceURI());
            parms.add(p);
            parmMap.put(part.getName(), p);
        }
        if (output != null) {
            parts = output.getMessage().getParts().values();
            for (Iterator i = parts.iterator(); i.hasNext();) {
                Part part = (Part)i.next();
               
                OperationWebParam p = parmMap.get(part.getName());
                if (p == null) {
View Full Code Here

    }

    public Map getParts(Operation operation, boolean out) {
        Message message = null;
        if (out) {
            Output output = operation.getOutput();
            message = output.getMessage();
        } else {
            Input input = operation.getInput();
            message = input.getMessage();
        }
        return message.getParts() == null ? new HashMap() : message.getParts();
View Full Code Here

        }
        return partsList;
    }

    public List<Part> getOutMessageParts(Operation operation) {
        Output output = operation.getOutput();
        List<Part> partsList = new ArrayList<Part>();
        if (output != null) {
            Iterator ite = output.getMessage().getParts().values().iterator();
            while (ite.hasNext()) {
                partsList.add((Part)ite.next());
            }
        }
        return partsList;
View Full Code Here

        input.setName(inputName);
        operation.setInput(input);
    }

    private void addOutputToMessage(Operation operation, Message msg, String outputName) {
        Output output = definition.createOutput();
        output.setMessage(msg);
        output.setName(outputName);
        operation.setOutput(output);
    }
View Full Code Here

                            Message msg = new Message("RPC_PART_ILLEGAL", LOG, new Object[] {part.getName()});
                            throw new ToolException(msg);
                        }
                    }
                }
                Output output = op.getOutput();
                if (output != null && output.getMessage() != null) {
                    Iterator itParts = output.getMessage().getParts().values().iterator();
                    while (itParts.hasNext()) {
                        Part part = (Part)itParts.next();
                        if (part.getTypeName() == null || "".equals(part.getTypeName().toString())) {
                            Message msg = new Message("RPC_PART_ILLEGAL", LOG, new Object[] {part.getName()});
                            throw new ToolException(msg);
View Full Code Here

    Operation op = (Operation)it2.next();

    out.println(" " + op.getName());
   
    Input  in   = op.getInput();
    Output msg_out = op.getOutput();
   
    out.println("  in:  "); //  + in.getMessage().getQName().getLocalPart());
    if(in != null) {
      printMessage(in.getMessage(), typeMap, 3, out);
    } else {
      System.out.println("    null input");
    }
    out.println("  out: "); //  + out.getMessage().getQName().getLocalPart());
    if(msg_out != null) {
      printMessage(msg_out.getMessage(), typeMap, 3, out);
    } else {
      System.out.println("    null output");
    }
  }
    }
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.