Hi All, I was able to reproduce the issue with the given wsdl in the issue. This can only happen in cases where there is one method and it is not in document or rpc style. In such case both if and else blocks will throw an exception so that the execution won't continue afterwards. That's the reason for the reported issue.
Here I came up with a patch, where I have put the rest of method execution (newMsgContext.setEnvelope(envelope);) to the if-else if block so that we can assure that we don't execute anything if both if and else blocks throw an exception. In this patch there is a trade-off where we may see duplication of "newMsgContext.setEnvelope(envelope);" in generated code but to be on the safe side we may go ahead with the fix. Please review the patch attached for [1] and let me know if there are issues with it. thanks Eranda [1]. https://issues.apache.org/jira/browse/AXIS2-4297 -- *Eranda Sooriyabandara* E-mail: eranda.sooriyabandara AT gmail.com Mobile: +94 716 472 816 Linked-In: http://www.linkedin.com/in/erandasooriyabandara Blog: http://emsooriyabandara.blogspot.com/
