Package javax.wsdl

Examples of javax.wsdl.PortType.addOperation()


        definition.addPortType(portType);
        Operation operation = definition.createOperation();
        operation.setName("Operation");
        operation.setUndefined(false);
        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");
View Full Code Here


        definition.addPortType(portType);
        Operation operation = definition.createOperation();
        operation.setName("Operation");
        operation.setUndefined(false);
        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");
View Full Code Here

        definition.addPortType(portType);
        Operation operation = definition.createOperation();
        operation.setName("Operation");
        operation.setUndefined(false);
        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");
View Full Code Here

        soapBinding.setStyle("rpc");
        binding.addExtensibilityElement(soapBinding);
        binding.addBindingOperation(bindingOperation);
        PortType portType = definition.createPortType();
        portType.setQName(new QName(NAMESPACE, "MockPort"));
        portType.addOperation(bindingOperation.getOperation());
        binding.setPortType(portType);
        Port port = definition.createPort();
        port.setName("MockPort");
        //add soap:address
        SOAPAddress soapAddress = (SOAPAddress) extensionRegistry.createExtension(Port.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "address"));
View Full Code Here

        fault.setMessage(message);
        fault.setName("fault" + (count++));
        op.addFault(fault);
      }
    }
    portType.addOperation(op);
    portType.setUndefined(false);
    def.addPortType(portType);
    return portType;
  }
View Full Code Here

        operation.setOutput(output);
        operation.setInput(input);

        PortType portType = def.createPortType();
        portType.setQName(new QName(TNS, this.name + "PortType"));
        portType.addOperation(operation);
        portType.setUndefined(false);
        def.addPortType(portType);

        // SOAP binding
        SOAPBinding soapBinding = new SOAPBindingImpl();
View Full Code Here

        Binding binding = definitionGenerator.createBinding(definition, portType);
        Map<String, XMLTypeHelper> helpers = new HashMap<String, XMLTypeHelper>();
        Map<QName, List<ElementInfo>> wrappers = new HashMap<QName, List<ElementInfo>>();
        for (Operation op : interfaze.getOperations()) {
            javax.wsdl.Operation operation = generateOperation(definition, op, helpers, wrappers);
            portType.addOperation(operation);
            String action = ((JavaOperation)op).getAction();
            BindingOperation bindingOp = definitionGenerator.createBindingOperation(definition, operation, action);
            binding.addBindingOperation(bindingOp);
        }
        portType.setUndefined(false);
View Full Code Here

      {
        Operation op = parseOperation(tempEl, portType, def);

        if (op != null)
        {
          portType.addOperation(op);
        }
      }
      else
      {
        portType.addExtensibilityElement(
View Full Code Here

      {
        // modified so duplicate operations will not be added to porttype
        Operation op = parseOperation(tempEl, portType, def);
        if (op != null)
        {
          portType.addOperation(op);
        }
        //portType.addOperation(parseOperation(tempEl, portType, def));
      }
      else
      {
View Full Code Here

        operation.setOutput(output);
        operation.setInput(input);

        PortType portType = def.createPortType();
        portType.setQName(new QName(TNS, this.name + "PortType"));
        portType.addOperation(operation);
        portType.setUndefined(false);
        def.addPortType(portType);

        // SOAP binding
        SOAPBinding soapBinding = new SOAPBindingImpl();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.