Re: Problem with PEAR::SOAP and a specific WSDL source
| From: | Chris Campbell | Date: | Thu, 18 Dec 2003 05:44:38 +0000 |
| Subject: | Re: Problem with PEAR::SOAP and a specific WSDL source | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9640@lists.php.net to get a copy of this message | ||
Aha. I have discovered that the problem was entirely due to the WSDL
URL beginning with 'https' as opposed to 'http'. Apparently the
PEAR::SOAP package can't handle SSL for WSDL sources. Oh well.
--Chris
Chris Campbell wrote:
> Hello,
>
> I'm trying to use PEAR::SOAP with this WSDL source:
>
> https://www.heraldclassifiedad.com/cfesoap.exe/wsdl/icfewebservìÛŒ
> Û:™ÇØw�êÀ³ê
>
> My code looks like this:
>
>
> require_once("SOAP/WSDL.php");
>
> $wsdl = new
>
> SOAP_WSDL('https://www.heraldclassifiedad.com/cfesoap.exe/wsdl/icfewebserv');
>
> echo "<pre>Instanciated the WSDL object.\n\n";
> print_r ($wsdl);
> flush();
> echo ($wsdl->generateProxyCode().'</pre>');
>
>
> What I find is that errors get thrown by generateProxyCode:
>
> Notice: Undefined index: in
> /home/ccampbell/projects/xchannel/lib/PEAR/SOAP/WSDL.php on line 437
>
> Warning: reset(): Passed variable is not an array or object in
> /home/ccampbell/projects/xchannel/lib/PEAR/SOAP/WSDL.php on line 439
>
> Warning: current(): Passed variable is not an array or object in
> /home/ccampbell/projects/xchannel/lib/PEAR/SOAP/WSDL.php on line 440
>
>
> Looking at the output of the print_r statement, it appears that the WSDL
> is not getting parsed correctly because a lot of the data members seem
> to be empty:
>
> soap_wsdl Object
> (
> [tns] =>
> [definition] => Array
> (
> )
>
> [namespaces] => Array
> (
> )
>
> [ns] => Array
> (
> )
>
> ...and so on...
>
>
> I don't think it's a problem with my PEAR::SOAP installation, because
> the same code works fine with a different WSDL source:
>
>
> http://wavendon.dsdata.co.uk/axis/services/CarRentalQuotes?wsdl
>
>
> Does anyone have any ideas what might be wrong? Have a look at the
> Miami Herald WSDL file I'm trying to read. It's syntactically correct,
> but is there perhaps an XML namespace issue that's preventing PEAR::SOAP
> from reading it properly?
>
>
> https://www.heraldclassifiedad.com/cfesoap.exe/wsdl/icfewebserv
>
> I'm using:
>
> HTTP-1.2.2.tgz
> HTTP_Request-1.2.tgz
> Net_DIME-0.3.tgz
> Net_Socket-1.0.1.tgz
> Net_URL-1.0.10.tgz
> PEAR-1.2.1.tgz
> SOAP-0.8RC2.tgz
>
> Any suggestions appreciated.
>
> Thanks,
> --Chris