Package javax.wsdl

Examples of javax.wsdl.Input


                    while (ite2.hasNext()) {
                        Operation operation = (Operation)ite2.next();
                        if (operation.getName().equals(opName)) {

                            operationMap.put(new QName(tns, opName), operation);
                            Input input = operation.getInput();
                            if (input != null && input.getMessage() != null
                                && !msgPartsMap.containsKey(input.getMessage().getQName())) {
                                Node errNode = ErrNodeLocator.getNode(document,
                                                                      WSDLConstants.QNAME_OPERATION,
                                                                      operation.getName(), input.getName());
                                schemaWSDLValidator.addError(errNode, " input : " + input.getName()
                                                                      + " reference is not defined");
                                isValid = false;
                            }

                            Output output = operation.getOutput();
View Full Code Here


        if (operation == null) {
            return null;
        }

        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,
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,
View Full Code Here

        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 portTypes;
    }

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

        part.setTypeName(typeName);
        message.addPart(part);
    }

    private void addInputToMessage(Operation operation, Message msg, String inputName) {
        Input input = definition.createInput();
        input.setMessage(msg);
        input.setName(inputName);
        operation.setInput(input);
    }
View Full Code Here

        }
        if (WSDLConstants.RPC.equalsIgnoreCase((String)env.get(ToolConstants.CFG_STYLE))) {
            Iterator it = portType.getOperations().iterator();
            while (it.hasNext()) {
                Operation op = (Operation)it.next();
                Input input = op.getInput();
                if (input != null && input.getMessage() != null) {
                    Iterator itParts = input.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

  for(Iterator it2 = pt.getOperations().iterator(); it2.hasNext();) {
    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) {
View Full Code Here

    private BindingOperation buildBindingOperation(Definition definition, ExtensionRegistry extensionRegistry) throws WSDLException {
        Operation operation = definition.createOperation();
        operation.setName(operationName);
        operation.setStyle(OperationType.REQUEST_RESPONSE);
        Input input = definition.createInput();
        Message inputMessage = definition.createMessage();
        Part inputPart = definition.createPart();
        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();
View Full Code Here

TOP

Related Classes of javax.wsdl.Input

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.