Nusoap: Enforce service URL (port number)

By default, call() function of nusoap client will retrieve service URL defined in WSDL file. If you want to use specific port number or service URL, you need to use setEndpoint() function to force the call to use the URL you want.

$this->nusoap_client = new nusoap_client($serverpath, true);
$this->nusoap_client->xml_encoding = 'UTF-8';
$this->nusoap_client->decode_utf8 = FALSE;