Package org.apache.wsif

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


    /**
     * @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

    /**
     * @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

    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

                    } 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

    /**
     * @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

    /**
     * @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

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

    /**
     * @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

    /**
     * Gets the context information for this binding.
     */
    public WSIFMessage getContext() throws WSIFException {
        Trc.entry(this);
      WSIFMessage contextCopy;
      try {
          if (this.context == null) {
            contextCopy = (WSIFMessage) getWSIFPort().getContext().clone();
          } else {
          contextCopy = (WSIFMessage) this.context.clone();
View Full Code Here

TOP

Related Classes of org.apache.wsif.WSIFMessage

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.