Configuring axis2.xml
For each protocol (HTTP and/or HTTPS), an AxisServletListener instance must be declared in axis2.xml.
The axis2.xmlfile is found at the location:
...\Server\tomcat-*\webapps\nyx\WEB-INF\conf
If only a single protocol is used, no further configuration is required.
For example, if only HTTP is used, the following declaration must be present in axis2.xml:
<transportReceiver name="http" class="org.apache.axis2.transport.http.

AxisServletListener"/>
If both HTTP and HTTPS are used, AxisServlet must know the ports used by HTTP and HTTPS to expose WSDLs with correct endpoint URLs. Typically, the servlet API doesn't allow a Web application to discover all the configured protocols. It only provides information about the protocol, host name and port for the current request.
If only a single AxisServletListener is configured, then this information is enough to let AxisServlet auto-detect the port number.
If both HTTP and HTTPS are used (or if WSDLs are retrieved through transports other than AxisServlet), then AxisServlet has no way of knowing the port numbers until it has processed at least one request for each protocol. To make WSDL generation predictable in this scenario, it is necessary to explicitly configure the port numbers in axis2.xml, such as in the following example:
<transportReceiver name="http" class="org.apache.axis2.transport.http.

AxisServletListener">
<parameter name="port">8080</parameter>
</transportReceiver>
<transportReceiver name="https" class="org.apache.axis2.transport.http.

AxisServletListener">
<parameter name="port">8443</parameter>
</transportReceiver>