Is there any way to override the axis default port specified in axis2.xml through code?
I want to initialize it with a dynamic value, keeping all other settings intact.
I think you should use AxisServletListener#setPort(int)
AxisServletListener#setPort(int)
Read javadoc here:
http://axis.apache.org/axis2/java/core/api/org/apache/axis2/transport/http/AxisServletListener.html#setPort(int)