axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject cvs commit: xml-axis-wsif/java/src/org/apache/wsif WSIFOperation.java
Date Mon, 16 Sep 2002 07:31:09 GMT
antelder    2002/09/16 00:31:09

  Modified:    java/src/org/apache/wsif/base WSIFDefaultOperation.java
               java/src/org/apache/wsif/providers/soap/apacheaxis
                        WSIFOperation_ApacheAxis.java
               java/src/org/apache/wsif/providers/soap/apachesoap
                        WSIFOperation_ApacheSOAP.java
               java/src/org/apache/wsif/providers/jms
                        WSIFOperation_Jms.java
               java/src/org/apache/wsif WSIFOperation.java
  Log:
  Fix async operation processAsyncresponse method so that it returns a boolean describing
if the output or fault message has been populated with the response parts.
  
  Revision  Changes    Path
  1.12      +1 -1      xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultOperation.java
  
  Index: WSIFDefaultOperation.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultOperation.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- WSIFDefaultOperation.java	4 Sep 2002 18:23:50 -0000	1.11
  +++ WSIFDefaultOperation.java	16 Sep 2002 07:31:08 -0000	1.12
  @@ -139,7 +139,7 @@
        * throws an exception.
        * @see WSIFOperation#processAsyncResponse(Object,WSIFMessage,WSIFMessage)
        */
  -    public void processAsyncResponse(
  +    public boolean processAsyncResponse(
           Object response,
           WSIFMessage output,
           WSIFMessage fault)
  
  
  
  1.22      +9 -3      xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java
  
  Index: WSIFOperation_ApacheAxis.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- WSIFOperation_ApacheAxis.java	29 Aug 2002 10:02:49 -0000	1.21
  +++ WSIFOperation_ApacheAxis.java	16 Sep 2002 07:31:09 -0000	1.22
  @@ -375,8 +375,13 @@
        *        the operation invocation fails. If it succeeds, the
        *        contents of this message are undefined. (This is a
        *        return value of this method.)
  +     * 
  +     * @return true or false indicating whether a fault message was
  +     *         generated or not. The truth value indicates whether
  +     *         the output or fault message has useful information.
  +     *
        */
  -    public void processAsyncResponse(
  +    public boolean processAsyncResponse(
           Object response,
           WSIFMessage output,
           WSIFMessage fault)
  @@ -384,9 +389,10 @@
           Trc.entry(this, response, output, fault);
   
           Object result = deserialiseResponseObject(response);
  -        buildResponseMessages(result, output, fault);
  +        boolean ok = buildResponseMessages(result, output, fault);
   
  -        Trc.exit(output); // ,fault); ??
  +        Trc.exit( ok ); 
  +        return ok;
       }
   
       /**
  
  
  
  1.24      +9 -3      xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apachesoap/WSIFOperation_ApacheSOAP.java
  
  Index: WSIFOperation_ApacheSOAP.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apachesoap/WSIFOperation_ApacheSOAP.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- WSIFOperation_ApacheSOAP.java	28 Aug 2002 13:15:25 -0000	1.23
  +++ WSIFOperation_ApacheSOAP.java	16 Sep 2002 07:31:09 -0000	1.24
  @@ -936,8 +936,13 @@
        *        the operation invocation fails. If it succeeds, the
        *        contents of this message are undefined. (This is a
        *        return value of this method.)
  +     * 
  +     * @return true or false indicating whether a fault message was
  +     *         generated or not. The truth value indicates whether
  +     *         the output or fault message has useful information.
  +     *
        */
  -    public void processAsyncResponse(
  +    public boolean processAsyncResponse(
           Object response,
           WSIFMessage output,
           WSIFMessage fault)
  @@ -945,9 +950,10 @@
           Trc.entry(this, response, output, fault);
   
           Response resp = deserialiseResponseObject(response);
  -        buildResponseMessages(resp, output, fault);
  +        boolean ok = buildResponseMessages(resp, output, fault);
   
  -        Trc.exit(output); // , fault } ); ??
  +        Trc.exit( ok ); 
  +        return ok;
       }
   
       /**
  
  
  
  1.24      +7 -4      xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFOperation_Jms.java
  
  Index: WSIFOperation_Jms.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFOperation_Jms.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- WSIFOperation_Jms.java	12 Sep 2002 19:50:03 -0000	1.23
  +++ WSIFOperation_Jms.java	16 Sep 2002 07:31:09 -0000	1.24
  @@ -325,13 +325,13 @@
       /**
        * workflow specific processAsyncResponse(Object, WSIFMessage, WSIFMessage)
        */
  -    public void processAsyncResponse(
  +    public boolean processAsyncResponse(
           Object responseObject,
           WSIFMessage output,
           WSIFMessage fault)
           throws WSIFException {
   
  -        Trc.entry(this, output, fault);
  +        Trc.entry(this, responseObject, output, fault);
   
           try {
   
  @@ -358,8 +358,11 @@
                   ex);
           }
   
  -        Trc.exit();
  -        return;
  +        // if the fault msg has any parts there must have been a problem
  +        boolean ok = !fault.getPartNames().hasNext();
  +
  +        Trc.exit( ok );
  +        return ok;
       }
   
       /**
  
  
  
  1.3       +6 -1      xml-axis-wsif/java/src/org/apache/wsif/WSIFOperation.java
  
  Index: WSIFOperation.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/WSIFOperation.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WSIFOperation.java	9 Jul 2002 13:37:36 -0000	1.2
  +++ WSIFOperation.java	16 Sep 2002 07:31:09 -0000	1.3
  @@ -152,10 +152,15 @@
        *        the operation invocation fails. If it succeeds, the
        *        contents of this message are undefined. (This is a
        *        return value of this method.)
  +     * 
  +     * @return true or false indicating whether a fault message was
  +     *         generated or not. The truth value indicates whether
  +     *         the output or fault message has useful information.
  +     *
        * @exception WSIFException if something goes wrong
        *
        */
  -    public void processAsyncResponse(
  +    public boolean processAsyncResponse(
           Object response,
           WSIFMessage output,
           WSIFMessage fault)
  
  
  

Mime
View raw message