Examples of WSIFMessage


Examples of org.apache.wsif.WSIFMessage

    // name is in the jms:input list. Parts defined in the
    // WSDL but not in the input message defualt to null.
    String partName;
    ArrayList wsdlInputParts = getWSDLInputPartNames();
    HashMap propertyParts = getPropertyParts();
    WSIFMessage message = createInputMessage();
    for (Iterator i = input.getPartNames(); i.hasNext();) {
      partName = (String) i.next();
      if (propertyParts.containsKey(partName)) {
        String name = (String) propertyParts.get(partName);
        Object value = input.getObjectPart(partName);
        if (!timeoutProperty(name, value)) {
          jmsDest.setProperty(name, value);
        }
      } else if (wsdlInputParts.contains(partName)) {
        wsdlInputParts.remove(partName);
        if (fieldInput == null) {
          message.setObjectPart(
            partName,
            input.getObjectPart(partName));
        } else if (fieldInput.getParts().contains(partName)) {
          message.setObjectPart(
            partName,
            input.getObjectPart(partName));
        }
      }
    }

    // default missing parts to null
    for (Iterator i = wsdlInputParts.iterator(); i.hasNext();) {
      message.setObjectPart((String) i.next(), null);
    }

    // properties from the context
    setDestinationContext();
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

      // the output message contains all response parts
      // even if not defined in the WSDL. Any parts
      // defined in the WSDL but not in the response
      // default to null
      ArrayList wsdlOutputParts = getWSDLOutputPartNames();
      WSIFMessage m = resp.getOutgoingMessage();
      if (m != null) {
        String partName;
        for (Iterator i = m.getPartNames(); i.hasNext();) {
          partName = (String) i.next();
          output.setObjectPart(partName, m.getObjectPart(partName));
          wsdlOutputParts.remove(partName);
        }
      }

      for (Iterator i = wsdlOutputParts.iterator(); i.hasNext();) {
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    /**
     * @see WSIFOperation#createInputMessage()
     */
    public WSIFMessage createInputMessage() {
        Trc.entry(this);
        WSIFMessage msg = new WSIFDefaultMessage();
        if (msg != null) {
            // Now find the javax.wsdl.Message & set it on the WSIFMessage
            try {
                msg.setMessageDefinition(
                    getOperation().getInput().getMessage());
            } catch (Exception e) {
                Trc.ignoredException(e);
            }
        }
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    /**
     * @see WSIFOperation#createInputMessage(String)
     */
    public WSIFMessage createInputMessage(String name) {
        Trc.entry(this, name);
        WSIFMessage msg = new WSIFDefaultMessage();
        if (msg != null) {
            msg.setName(name);
            // Now find the javax.wsdl.Message & set it on the WSIFMessage
            try {
                msg.setMessageDefinition(
                    getOperation().getInput().getMessage());
            } catch (Exception e) {
                Trc.ignoredException(e);
            }
        }
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    public void fireAsyncResponse(Object response) throws WSIFException {
        Trc.entry(this, response);

        Response resp = deserialiseResponseObject(response);

        WSIFMessage outMsg = createOutputMessage();
        WSIFMessage faultMsg = createFaultMessage();
        buildResponseMessages(resp, outMsg, faultMsg);

        getResponseHandler().executeAsyncResponse(outMsg, faultMsg);

        Trc.exit(outMsg); // , faultMsg } ); ??
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

                    } else {
                      Trc.event("unexpected response SOAP header type: ", o);
                    }
                }
                if (headers.size() > 0) {
                    WSIFMessage context = getContext();
                    context.setObjectPart(
                        WSIFConstants.CONTEXT_RESPONSE_SOAP_HEADERS,
                        headers);
                    setContext(context);
                }
             }
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    /**
     * @see WSIFOperation#createOutputMessage()
     */
    public WSIFMessage createOutputMessage() {
        Trc.entry(this);
        WSIFMessage msg = new WSIFDefaultMessage();
        if (msg != null) {
            // Now find the javax.wsdl.Message & set it on the WSIFMessage
            try {
                msg.setMessageDefinition(
                    getOperation().getOutput().getMessage());
            } catch (Exception e) {
                Trc.ignoredException(e);
            }
        }
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    /**
     * @see WSIFOperation#createOutputMessage(String)
     */
    public WSIFMessage createOutputMessage(String name) {
        Trc.entry(this, name);
        WSIFMessage msg = new WSIFDefaultMessage();
        if (msg != null) {
            msg.setName(name);
            // Now find the javax.wsdl.Message & set it on the WSIFMessage
            try {
                msg.setMessageDefinition(
                    getOperation().getOutput().getMessage());
            } catch (Exception e) {
                Trc.ignoredException(e);
            }
        }
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    /**
     * @see WSIFOperation#createFaultMessage()
     */
    public WSIFMessage createFaultMessage() {
        Trc.entry(this);
        WSIFMessage wm = new WSIFDefaultMessage();
        Trc.exit(wm);
        return wm;
    }
View Full Code Here

Examples of org.apache.wsif.WSIFMessage

    /**
     * @see WSIFOperation#createFaultMessage(String)
     */
    public WSIFMessage createFaultMessage(String name) {
        Trc.entry(this, name);
        WSIFMessage msg = new WSIFDefaultMessage();
        if (msg != null) {
            msg.setName(name);
            // Now find the javax.wsdl.Message & set it on the WSIFMessage
            try {
                msg.setMessageDefinition(
                    getOperation().getFault(name).getMessage());
            } catch (Exception e) {
                Trc.ignoredException(e);
            }
        }
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.