SOAP v PHP cez HTTPS

Desi desi na mediate.sk
Pondělí Červenec 16 01:40:04 CEST 2007


Ahoj,

v mycert.pem musi byt aj privatny kluc, mozno to bude tym...

--
Desi

krack na seznam.cz wrote:
>  Ahojte
> 
> Mám taký problém. Neviem sa pripojit cez SOAP na WSDL sluzbu v PHP cez
> HTTPS. Ak sa pripajam na tuto sluzbu cez HTTP, tak to funguje dobre.
> Neviete mi niekto poradit, kde by mohol byt problem?
> 
> 
> wsdl = "https://xxx.yyy.zzz/WSDL/1.2/API.wsdl";
> local_cert = "./mycert.pem";
> client = & new SoapClient(wsdl, array('local_cert' => local_cert,
> 'trace' => true,
> 'exceptions' => true));
> print_r(client);
> 
> 
> 
> Koli tomu, ze nemozem uviest skutocnu adresu sluzby, pouzil som namiesto
> nej https://xxx.yyy.zzz/WSDL/1.2/API.wsdl. Vedel by mi niekto poradit ako
> sa na sluzbu na HTTPS z PHP pripojit?
> 
> 
> 
> Vypisuje mi to nasledujuce chyby: sad smiley
> 
> Warning: SoapClient::__construct() [function.--construct]: Unable to set
> private key file `./mycert.pem' in /domains/aaa/index.php on line 9
> 
> Warning: SoapClient::__construct() [function.--construct]: failed to
> create an SSL handle in /domains/aaa/index.php on line 9
> 
> Warning: SoapClient::__construct() [function.--construct]: Failed to
> enable crypto in /domains/aaa/index.php on line 9
> 
> Warning: SoapClient::__construct(https://xxx.yyy.zzz/WSDL/1.2/API.wsdl)
> [function.--construct]: failed to open stream: Operation now in progress
> in /domains/aaa/index.php on line 9
> 
> Warning: SoapClient::__construct() [function.--construct]: I/O warning :
> failed to load external entity "https://xxx.yyy.zzz/WSDL/1.2/API.wsdl" in
> /domains/aaa/index.php on line 9
> 
> Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
> WSDL: Couldn't load from 'https://xxx.yyy.zzz/WSDL/1.2/API.wsdl' in
> /domains/aaa/index.php:9 Stack trace: #0 /domains/aaa/start.php(9):
> SoapClient->__construct('https://xxx.yyy...', Array) #1 {main} thrown in
> /domains/index.php on line 9
> _______________________________________________
> Linux mailing list
> Linux na linux.cz
> http://www.linux.cz/mailman/listinfo/linux



Další informace o konferenci Linux