Re: [SOAP] soap problems revisited
| From: | Arnaud Limbourg | Date: | Wed, 27 Aug 2003 19:43:16 +0000 |
| Subject: | Re: [SOAP] soap problems revisited | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-989@lists.php.net to get a copy of this message | ||
Hi,
just tried and it works well. (php 4.3.2, linux)
That was command-line, did not try under apache but it shouldn't be any different.
php soap_car.php
Array
(
[0] => Australia
[1] => Belgium
[2] => Canada
[3] => China
[4] => France
[5] => Germany
[6] => Greece
[7] => Italy
[8] => Japan
[9] => Singapore
[10] => Spain
[11] => United Kingdom
[12] => United States
)
Arnaud.
> Hi,
>
> I have not had much time to look at Pear::SOAP since my comments a few
> weeks ago but to pick up from where I left off I still don't seem to be
> able to get a simple WSDL client example working.
>
> Take an example from this page:
>
>
> http://www.phppatterns.com/index.php/article/articleview/39/1/2/
>
>
> They show the following code (the last example):
>
> <?php
> require_once('SOAP/Client.php');
> $wsdl=new SOAP_WSDL(
>
> 'http://wavendon.dsdata.co.uk/axis/services/CarRentalQuotes?wsdl');
>
> // Create an object directly from the proxy code
> $carRentalQuotes=$wsdl->getProxy();
>
> $countries=$carRentalQuotes->getCountries();
>
> print_r ( $countries );
> ?>
>
>
> This however doesn't work for me. In fact, the script seems to die
> somewhere inside the $carRentalQuotes->getCountries(); function. If I
> print out debug messages before and after this line it prints the one
> before but not the one after. Any ideas where I am going wrong?
>
> FYI - I am using
>
> SOAP 0.8.0-RC1
> PHP 4.3.2 (as an Apache Module)
> Apache 1.3.28
>
> All running under Linux.
>
> Thanks and regards,