PROBLEM

Changing to https in the Axis toolkit causes a blank output screen

Last Published: April 25, 2020

Description

When changing the host URL from http to https using the Axis toolkit, the output screen turns blank.

Cause

This is due to an exception in the wrapper classes because the standard port for https is 443 and the standard port for http is 80.

Solution or Workaround

The following piece of JSP code solves the problem:
Code:

String strHost = (String) session.getAttribute("hostName") ;
if(strHost.substring(0,5).equalsIgnoreCase("http:"))
{
strUrl = strHost+":80/services/v1/PlaceFinderSample";
} else if(strHost.substring(0,5).equalsIgnoreCase("https"))
{
strUrl = strHost+":443/services/v1/PlaceFinderSample";
}


    Article ID:000006405

    Software:
    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic