Axis2 web service & ports resolution
<p>Our app seems to have stuck in a peculiar issue where the port number resolution in the <code>soap:address</code> is causing connectivity issues. Below is detailed explanation.</p>

<p>App setup:
1. Ours is a simple web service developed using axis2 in the traditional aar setup using Axis container.<br>
2. Later it has been modified to use Tomcat container still with axis2 service. So the aar file has been deployed on the WEB-INF folder structure and reference to axis container has been removed. <br>
3. port numbers have been removed from the axis2.xml so as to allow the service be reached on the Tomcat ports. <br>
4. When the war is deployed, the folder structure is exploded and wsdl is generated with the <code>soap:address</code> as this:</p>

<pre><code>wsdl:service name="XYZ"&gt;
&lt;wsdl:port name="XYZHttpSoap12Endpoint" binding="axis2:XYZSoap12Binding"&gt;
&lt;soap12:address location="https://&lt;big-ip&gt;/&lt;root-handle&gt;/services/XYZ.XYZHttpSoap12Endpoint/"/&gt;
&lt;/wsdl:port&gt;
&lt;wsdl:port name="XYZHttpEndpoint" binding="axis2:XYZHttpBinding"&gt;
&lt;http:address location="https://&lt;big-ip&gt;/&lt;root-handle&gt;/services/XYZ.XYZHttpSoap12Endpoint/"/&gt;
&lt;/wsdl:port&gt;
&lt;wsdl:port name="XYZHttpSoap11Endpoint" binding="axis2:XYZSoap11Binding"&gt;
&lt;soap:address location="https://&lt;big-ip&gt;/&lt;root-handle&gt;/services/XYZ.XYZHttpSoap12Endpoint/"/&gt;
&lt;/wsdl:port&gt;
&lt;/wsdl:service&gt;
</code></pre>

<p>However, port number is being appended on the <code>soap:address</code> randomly which seems to be causing connectivity issues for the client.</p>

<p>Can anyone point me to what is wrong here?</p>

<p>Appreciate quick responses.</p>