You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Peter Mihalik <pe...@tempest.sk> on 2007/10/30 09:32:03 UTC

one-way operation through http transport

Hi there! Why axis does not throw a Exception when it receives a HTTP 
status 500? I tracked the code (axis2-1.3) and found something like 
(HTTPSender.java):

            Object isTransportNonBlocking = msgContext.getProperty(
                    MessageContext.TRANSPORT_NON_BLOCKING);
            if (isTransportNonBlocking != null &&
                    ((Boolean) isTransportNonBlocking).booleanValue()) {
                throw new AxisFault(Messages.getMessage("transportError",
                        String.valueOf(statusCode),
                        method.getStatusText()));
            }

sholudn't it be:

            if (isTransportNonBlocking != null &&
                    !((Boolean) isTransportNonBlocking).booleanValue()) {

(note the !)

Why to throw a exception if the call is non blocking? The non blocking 
calls are made in a separate thread, why do we want to throw a exception 
in that thread?

And another, related question:
Why axis does not check a empty SOAPResponse when doing a blocking 
one-way call through HTTP? I can send my SOAP message even to 
http://www.google.com and everything is pretending to be OK, but it isn't!

Thanks,
Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org