note 109000 modified in soapclient.soapclient by danbrown

From: Date: Wed, 13 Jun 2012 15:27:01 +0000
Subject: note 109000 modified in soapclient.soapclient by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188574@lists.php.net to get a copy of this message
If your service is protected through basic http authentication and you're not using wsdl, you will have to put the login in the SoapClient's option:

<?php
$client = new SoapClient(
	null,
	array(
		'soap_version' => SOAP_1_2,
		'location' => ...
		...,
		'login' => 'username',
		'password' => '*******',
	)
);
?> --was-- If your service is protected through basic http authentication and you're not using wsdl, you will have to put the login in the SoapClient's option: $client = new SoapClient( null, array( 'soap_version' => SOAP_1_2, 'location' => ... ..., 'login' => 'username', 'password' => '*******', ) ); http://php.net/manual/en/soapclient.soapclient.php

« previous php.notes (#188574) next »