|
Re: Question: msg#00121php.nusoap.general
The setCredentials method is /** * if authenticating, set user credentials here * * @param string $username * @param string $password * @param string $authtype (basic|digest|certificate) * @param array $certRequest (keys must be cainfofile (optional), sslcertfile, sslkeyfile, passphrase, verifypeer (optional), verifyhost (optional): see corresponding options in cURL docs) * @access public */ function setCredentials($username, $password, $authtype = 'basic', $certRequest = array()) { $this->username = $username; $this->password = $password; $this->authtype = $authtype; $this->certRequest = $certRequest; } You would do something like $certRequest['sslcertfile'] = 'your-cert-file'; $certRequest['sslkey'] = 'your-ssl-key'; $certRequest['passphrase'] = 'your-pass-phrase'; $client->setCredentials('x', 'y', 'certificate', $certRequest); Check PHP help on cURL for details about things like sslcertfile, or check the cURL site directly. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "gaurav verma" <citius21j@xxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, April 28, 2005 12:29 PM Subject: Re: [Nusoap-general] Question > >Do you have the latest NuSOAP from CVS? > > Yes > > Do you use an https URL? > > Yes > > >Do you call setCredentials, specifying 'certificate' authtype and providing > >a certRequest array? > No..How to do that..Could you please guide.We have installed the verisign > certificate on the client and the server. How to tell PHP to authenticate > against that? > > > > > > > Hi, > > Well I needed to build this client, which connects to a website, sends > > input data in XML with soap headers and receieves output XML with soap > > headers. > > The server authenticates by verisign certificate and IP address. > > I tried to connect to this server using PHP with NuSoap > > but got this error > > HTTP/1.1 403 Access Forbidden Server: Microsoft-IIS/5.0 Date: Thu, 28 Apr > > 2005 07:31:49 GMT Connection: close Content-Type: text/html Content-Length: > > 244 Secure Channel Client Authentication RequiredThis Virtual Directory > > requires a browser that supports the configured encryption options. > > > > What does it indicate?? Can't I use PHP NuSoap to connect to this server?? > > Any help will be greatly appreciated > > > > Thanks > > > > Regards, > > Gaurav > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Sports - Sign up for Fantasy Baseball. > > > ------------------------------------------------------- > SF.Net email is sponsored by: Tell us your software development plans! > Take this survey and enter to win a one-year sub to SourceForge.net > Plus IDC's 2005 look-ahead and a copy of this survey > Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - Easier than ever with enhanced search. Learn more. ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Question: 00121, gaurav verma |
|---|---|
| Next by Date: | Re: naming of class methods: 00121, Dan Rossi |
| Previous by Thread: | Re: Questioni: 00121, gaurav verma |
| Next by Thread: | Nusoap and complexTypes: 00121, David Felton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |