Examples of WSIFResponse


Examples of org.apache.wsif.WSIFResponse

        // tell it about the message so we can inquire about its JMS properties
        // later.
        fieldJmsPort.getJmsDestination().setLastMessage(
            (javax.jms.Message) responseObject);
       
    WSIFResponse resp =
      formatter.unformatResponse((javax.jms.Message) responseObject);

    if (resp.getIsFault()) {
      formatter.copyTo(resp.getOutgoingMessage(), fault);
      setFaultProperties(fault, formatter.getLastBindingFault());

      Trc.exit(false);
      return false;
    } else {

      // 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));
View Full Code Here

Examples of org.apache.wsif.WSIFResponse

    }

    if (operationName == null)
      throw new WSIFException("Unable to locate Operation");
       
    WSIFResponse response = new WSIFResponse(serviceName);
    response.setPortName(fieldPort.getName());
        response.setOperationName(operationName);
        response.setInputName(input);
        response.setOutputName(output);
        Trc.exit(response);
        return response;
    }
View Full Code Here

Examples of org.apache.wsif.WSIFResponse

    public WSIFResponse unformatResponse(javax.jms.Message out)
        throws WSIFException {
         
        Trc.entry(this, out);
        // Need to construct the response.
        WSIFResponse resp = createResponse(out);

    Binding binding = fieldPort.getBinding();
        BindingOperation bop =
            binding.getBindingOperation(
                resp.getOperationName(),
                resp.getInputName(),
                resp.getOutputName());
               
        if (unformatResponseFault(resp, out, binding, bop)) {
          Trc.exit(resp);
            return resp;
        }
       
        Operation op = bop.getOperation();
        javax.wsdl.Output output =  op.getOutput();
        if ( output != null ) {
           javax.wsdl.Message outMessage = output.getMessage();

           org.apache.wsif.providers.jms.JMSMessage fhMsg =
              new org.apache.wsif.providers.jms.JMSMessage(
                 fieldDefinition,
                 binding,
                 outMessage,
                 getOutputParts(bop));

           fhMsg.read(out);

           resp.setOutgoingMessage(fhMsg);
        }

        Trc.exit(resp);
        return resp;
    }
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.