I have created an AXIS service which connects to WSO2 Identity Server and validates a token. When I deploy this axis service on WSO2 App Server, I get the correct response. Wher
Adding to Ratha's answer, the following official documentation provides a detailed explanation about hostname verification in WSO2 products.
Enabling HostName Verification
Set the parameter HostnameVerifier
to AllowAll
for transportSender in the Axis2 configuration (axis2.xml).
<transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender">
<!--...-->
<!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
<parameter name="HostnameVerifier">AllowAll</parameter>
<!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
</transportSender>