Hey Gary,

I think the interpretation is different. The if 
(!boi.getOutput().getMessageParts().isEmpty()) states the
expecations that response should not be empty. The resList variable (which 
comes from resList = CastUtils.cast(inMsg.getContent(List.class)) a few 
statements above) is the response indicator, if it is null (no response)
but boi.getOutput().getMessageParts().isEmpty() is "false", it means response 
is expected but was not received.
I think the code is correct. Thank you.

Best Regards,
    Andriy Redko



GG> In master, at
GG> org.apache.cxf.endpoint.ClientImpl.processResult(ClientImpl.java:663), we
GG> throw a IllegalEmptyResponseException where I see:

GG>             if (!boi.getOutput().getMessageParts().isEmpty()) {
GG>                 //we were supposed to get some output, but didn't.
GG>                 throw new IllegalEmptyResponseException("Response message
GG> did not contain proper response data."
GG>                     + " Expected: " +
GG> boi.getOutput().getMessageParts().get(0).getConcreteName());
GG>             }

GG> The test does not seem right:

GG> !boi.getOutput().getMessageParts().isEmpty()

GG> Should the "!" really be there if we want an error is there is no response?

GG> Gary

Reply via email to