On Fri, Apr 25, 2008 at 9:25 PM, Greg Donald <[EMAIL PROTECTED]> wrote:
>
> On Wed, Apr 23, 2008 at 3:04 PM, Greg Donald <[EMAIL PROTECTED]> wrote:
>  > Is this the part of ZF to use to consume web services?
>  >
>  >  http://framework.zend.com/manual/en/zend.rest.client.html
>  >
>  >
>  >  I'm trying to work with this:
>  >
>  >  http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=EBAY
>  >
>  >
>  >  Here's my non-working code:
>  >
>  >  require_once 'Zend/Rest/Client.php';
>  >  $client = new Zend_Rest_Client(
>  >  'http://www.webservicex.net/stockquote.asmx' );
>  >  $client->symbol = 'EBAY';
>  >  $this->view->result = $client->GetQuote();
>
>
>  Anyone have any insight into this issue?  At least let me know if I'm
>  headed in the right direction?

<?php
require_once 'Zend/Rest/Client.php';
$client = new Zend_Rest_Client('http://www.webservicex.net/');
$client->symbol('EBAY');
$result = $client->get('/stockquote.asmx/GetQuote');

var_dump($result);
?>

When "stockquote.asmx is added to the endpoint (in construct), it
fails for me as well. I am still stuck on 1.5PR though. Maybe Darbey
or Matthew can enlighten us.

Cheers!

Reply via email to