snichol 2003/01/03 08:08:41
Modified: java/src/org/apache/soap/transport/http
SOAPHTTPConnection.java
Log:
Finish cleaning up exception handling in send().
Revision Changes Path
1.30 +8 -16
xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java
Index: SOAPHTTPConnection.java
===================================================================
RCS file:
/home/cvs/xml-soap/java/src/org/apache/soap/transport/http/SOAPHTTPConnection.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- SOAPHTTPConnection.java 12 Nov 2002 14:15:38 -0000 1.29
+++ SOAPHTTPConnection.java 3 Jan 2003 16:08:41 -0000 1.30
@@ -367,20 +367,12 @@
"Basic " + HTTPUtils.encodeAuth(proxyUserName, proxyPassword));
}
- try
- {
- TransportMessage msg = new TransportMessage(payload, ctx, headers);
- msg.save();
-
- response = HTTPUtils.post (sendTo, msg,
- timeout, httpProxyHost, httpProxyPort,
- outputBufferSize, tcpNoDelay,
- requestCopy, responseCopy);
- } catch (MessagingException me) {
- throw new IOException ("Failed to encode mime multipart: " + me);
- } catch (UnsupportedEncodingException uee) {
- throw new IOException ("Failed to encode mime multipart: " + uee);
- }
+ TransportMessage msg = new TransportMessage(payload, ctx, headers);
+ msg.save();
+ response = HTTPUtils.post (sendTo, msg,
+ timeout, httpProxyHost, httpProxyPort,
+ outputBufferSize, tcpNoDelay,
+ requestCopy, responseCopy);
if (maintainSession) {
// look for Set-Cookie2 and Set-Cookie headers and save them.
@@ -410,9 +402,9 @@
cookies = hdrCookies;
}
}
- } catch (IllegalArgumentException e) {
- throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
} catch (IOException e) {
+ throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
+ } catch (MessagingException e) {
throw new SOAPException (Constants.FAULT_CODE_CLIENT, e.getMessage(), e);
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>