English

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

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";
}