The service which you have provided is a SOAP or HTTP GET service. You can use the get service they offer by doing /stockquote.asmx/GetQuote?symbol=string
example <?php $symbol = 'EBAY'; $url = 'http://www.webservicex.net/stockquote.asmx/GetQuote?symbol='; $stockquote = simplexml_load_string((string)simplexml_load_string(file_get_contents($url.$symbol))); echo "Symbol={$stockquote->Stock->Symbol} Last={$stockquote->Stock->Last}"; or use soap by doing <?php $symbol = 'EBAY'; $getQuote = new SoapClient('http://www.webservicex.net/stockquote.asmx?WSDL' ); $stockquote = simplexml_load_string($getQuote->GetQuote(array('symbol' => $symbol))->GetQuoteResult); echo "Symbol={$stockquote->Stock->Symbol} Last={$stockquote->Stock->Last}"; Hope this helps. On Wed, Apr 23, 2008 at 9: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(); > > > Thanks, > > > -- > Greg Donald > http://destiney.com/ >
