First Question:
dagon;10950306 wrote:curl needs to be installed for soap on php, but otherwise yup
The reason that curl need to be installed for soap on htttps is that due to I would need to use this to create the soap client connect to https
$client = new SoapClient("some.wsdl", array('local_cert' => "cert_key.pem"));
And this option, array('local_cert' => "cert_key.pem"), need curl to be installed to work?
Second Question:
//this is for soap client on http with username and password authentication. Is this only for http, not for https, right?
$client = new SoapClient("some.wsdl", array('login' => "some_name",
'password' => "some_password"));
//this is for soap client on https
$client = new SoapClient("some.wsdl", array('local_cert' => "cert_key.pem"));
To use username and password authentication on https, I have to take two steps, 1) make the https connection using this
$client = new SoapClient("some.wsdl", array('local_cert' => "cert_key.pem"));
to create the https soap client first. 2) and for the username and password authentication part, the soap server has to write a customer method? like in my first post
$result = $c->GetMembers(array('userName' => 'myname', 'password' => 'mypassword'));
Right?
Thanks!