Webservice with exceptions

"Dan Kristensen" <[email protected]>
Newsgroups gmane.comp.apache.webservices.wsif.devel
Message-ID <OF72361A09.58C8F9FA-ONC1256D9B.00498280-C1256D9B.004B264A@interactive.as>
I'm consuming a webservice, which doesn't return any value, but can throw 
an exception......

Im using Apache Axis as client-layer.


I believe, that the line stating respOK = buildResponseMessages(response, 
outMsg, faultMsg); 
in the class 
org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis
should be moved one line down, in order to handle calling webservices, 
which doesn't return any values, but can throw an Exception..


I've supplied a patch, for handling this:




Med venlig hilsen
Dan Kristensen
----------------------------
Par No 1 Interactive a|s
tel.:86600488
[email protected]
patch.diff (application/octet-stream, 799 B)
Index: WSIFOperation_ApacheAxis.java
===================================================================
RCS file: /home/cvspublic/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFOperation_ApacheAxis.java,v
retrieving revision 1.87
diff -u -r1.87 WSIFOperation_ApacheAxis.java
--- WSIFOperation_ApacheAxis.java	26 Aug 2003 09:30:35 -0000	1.87
+++ WSIFOperation_ApacheAxis.java	8 Sep 2003 13:25:51 -0000
@@ -1613,8 +1613,8 @@
                     }
                     setResponseMessageParameters(outParams);
                 }
-                respOK = buildResponseMessages(response, outMsg, faultMsg);
             }
+			respOK = buildResponseMessages(response, outMsg, faultMsg);
             setResponseUnreferencedAttachments(call, outMsg);
         }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.