cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

SOAP/PEAR/PHP: Unable to retrieve WSDL https://......

From: Xin <xzheng_at_asteriasgi.com>
Date: Fri, 28 Oct 2005 09:40:33 -0500

Hi,

I posted the question "curl: (58) unable to set certificate file (wrong
password?)" yesterday and got it work later.

Then I used PEAR/SOAP with the SAME SETTINGS as I did in curl, hoping to get
access to the service on the server side. The error I got is

"Unable to retrieve WSDL...."

The code is as follows, any help is appreciated.

===================================================

class SOAP_Client_1 extends SOAP_Client
{

  function SOAP_Client_1() {

        $this->setOpt('curl', CURLOPT_VERBOSE, '1');
        $this->setOpt('curl', CURLOPT_SSL_VERIFYHOST, '0');
        $this->setOpt('curl', CURLOPT_SSL_VERIFYPEER, '0');
        $this->setOpt('curl', CURLOPT_SSLCERT, 'c:\certificate.pem');
        $this->setOpt('curl', CURLOPT_SSLCERTPASSWD, 'xzhengpw');
        $this->setOpt('curl', CURLOPT_POST, '0');
        $this->setOpt('curl', CURLOPT_RETURNTRANSFER, '1');

        
$this->SOAP_Client('https://prototype.test.telefinity.com/integrationprovisi
oning/postal.asmx?WSDL', true);
        ////$this->SOAP_Client('c:\Dash911\Postal.wsdl', true);
        
  }
}

$soapclient2 = new SOAP_Client_1();
print_r ($soapclient2);

========================================

Thanks

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-10-28