If WSDL url points to the same server as its operations and it requires authentication, you'd add username/password to the URL, like this:
$server=new soapclient("http://testID:testPassword@localhost/test.php");
$server->setCredentials("testID","testPassword"); |
BTW, operations may require different credentials each.
Should be noted, that NuSoap supports BASIC AUTHENTICATION only.
(e.g. it does not support HTTP/DIGEST)
It means that passwords are passed in plain form and in order to set up security you'd use HTTPS protocol.