Package javax.wsdl

Examples of javax.wsdl.Input


         */
        public List<XmlSchemaElement> getInputChildElements() throws InvalidWSDLException {
            if (inputElements != null) {
                return inputElements;
            }
            Input input = operation.getInput();
            if (input != null) {
                Message inputMsg = input.getMessage();
                Collection parts = inputMsg.getParts().values();
                if (parts.size() != 1) {
                    return null;
                }
                Part part = (Part)parts.iterator().next();
View Full Code Here


      if (wsdl_portType != null)
      {
        Collection<Operation> operations = wsdl_portType.getOperations();
        for (Operation wsdl_portType_oper : operations)
        {
          Input wsdl_portType_oper_input = wsdl_portType_oper.getInput();
          if (wsdl_portType_oper_input != null)
          {
            javax.wsdl.Message wsdl_portType_oper_input_msg = wsdl_portType_oper_input.getMessage();
            if (wsdl_portType_oper_input_msg != null)
            {
              Collection wsdl_portType_oper_input_msg_parts = wsdl_portType_oper_input_msg.getParts().values();
              if (wsdl_portType_oper_input_msg_parts.size() != 1)
              {
View Full Code Here

    portType.setQName(new QName(def.getTargetNamespace(), serviceInfo.getPortName())) ;
    Operation op = def.createOperation();
    op.setUndefined(false);
    op.setName(serviceInfo.getOperationName());
    if (inMessage != null) {
      Input in = def.createInput();
      in.setMessage(inMessage);
      in.setName(inMessage.getQName().getLocalPart());
      if (serviceInfo.isAddressing()) {
        in.setExtensionAttribute(WSAW_ACTION_QN, serviceInfo.getRequestAction()) ;
      }
      op.setInput(in);
    }
    if (outMessage != null) {
      Output out = def.createOutput();
View Full Code Here

        return factory.newWSDLWriter().getDocument(def);
}

    public void getWSDL(Definition def, String locationURI) throws WSDLException {
        // set the IN parameters
        Input input = def.createInput();
        Set<String> inParam = this.getInParamNames();
        if (inParam != null) {
            Message inMessage = def.createMessage();
            inMessage.setQName(new QName(TNS, this.name + "Request"));
            inMessage.setUndefined(false);
            for (String paramName: inParam) {
                ModelParam param = this.getParam(paramName);
                if (!param.internal) {
                    inMessage.addPart(param.getWSDLPart(def));
                }
            }
            def.addMessage(inMessage);
            input.setMessage(inMessage);
        }

        // set the OUT parameters
        Output output = def.createOutput();
        Set<String> outParam = this.getOutParamNames();
View Full Code Here

        // get all the WSDL parts. If the soap:body parts= is defined
        // only get those parts, otherwise get all parts in the WSDL message
        javax.wsdl.Message m = null;
        if (isInput) {
          Input in = portTypeOperation.getInput();
          if (in != null) {
                m = in.getMessage();
          }
        } else {
          Output out = portTypeOperation.getOutput();
          if (out != null) {
            m = out.getMessage();
View Full Code Here

        }

    if (mimePartNames != null && !mimePartNames.isEmpty()) {
            javax.wsdl.Message m = null;
            if (isInput) {
              Input in = portTypeOperation.getInput();
              if (in != null) {
                    m = in.getMessage();
              }
            } else {
              Output out = portTypeOperation.getOutput();
              if (out != null) {
                m = out.getMessage();
View Full Code Here

    }
  }

  private ArrayList getWSDLInputPartNames() {
    ArrayList wsdlInputParts = new ArrayList();
    Input wsdlInput = fieldOperation.getInput();
    if (wsdlInput != null) {
      Message inputMessage = wsdlInput.getMessage();
      String partName;
      for (Iterator i = inputMessage.getParts().keySet().iterator();
        i.hasNext();
        ) {
        partName = (String) i.next();
View Full Code Here

        Trc.entry(this, method, args); // Tracing proxy cause a hang

        Operation operation = findMatchingOperation(method, args);

        // Now set up the input and output messages.     
        Input input = operation.getInput();
        Output output = operation.getOutput();
        String inputName = (input == null) ? null : input.getName();
        String outputName = (output == null) ? null : output.getName();
        Message inputMessage = (input == null) ? null : input.getMessage();
        Message outputMessage = (output == null) ? null : output.getMessage();

        WSIFOperation wsifOperation =
            wsifport.createOperation(method.getName(), inputName, outputName);

        // make the msg names for compiled msgs xxxAnt ask Mark why diff from inputName
        String inputMsgName = "";
        if (input != null) {
            Message m = input.getMessage();
            if (m != null) {
                QName qn = m.getQName();
                inputMsgName = (qn == null) ? "" : qn.getLocalPart();
            }
        }
View Full Code Here

            Operation operation = (Operation) opIt.next();
            // If the method name doesn't match the operation name this isn't the operation
            if (!methodName.equalsIgnoreCase(operation.getName()))
                continue;

            Input input = operation.getInput();
            Message inputMessage = (input == null) ? null : input.getMessage();
            List inputParts = (inputMessage == null)
               ? new ArrayList()
               : inputMessage.getOrderedParts(null);
           
            int numInputParts = inputParts.size();
View Full Code Here

        // process each operation to create dynamic operation instance
        for (Iterator i = operationList.iterator(); i.hasNext();) {
            Operation op = (Operation) i.next();
            String name = op.getName();
            //System.err.println("op = "+op);
            Input input = op.getInput();
            Output output = op.getOutput();
            if (input == null) {
                throw new WSIFException("missing input message for operation " + name);

            }
            if (output == null) {
                throw new WSIFException("missing output message for operation " + name);
            }

            WSIFOperation_SoapRMI opInst = new WSIFOperation_SoapRMI(this, op, typeMap);

            BindingOperation bop =
                binding.getBindingOperation(name, input.getName(), output.getName());

            if (bop == null) {
                throw new WSIFException(
                    "mising required in WSDL 1.1 binding operation for " + name);
            }
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.