Hi Matthew,
Matthew Weier O'Phinney schrieb am 02.01.2013 14:22:
> Sorry for the late reply -- I've been on winter vacation.
No problem at all, I thought something like that.
I added the docblock now:
---------------------------------------------------------------------------
namespace Pizza\Soap;
class Server
{
protected $pizzaList = array(
'1' => 'Salami',
'2' => 'Hawaii',
'3' => 'Melone',
);
/**
* @return array
*/
public function showPizzas()
{
return $this->pizzaList;
}
}
---------------------------------------------------------------------------
But now I get these errors:
---------------------------------------------------------------------------
Fatal error: Uncaught SoapFault exception: [Sender] Invalid XML in
/home/devhost/zf2-buch-listings/zf2-buch-chapter14/vendor/zendframework/zendframework/library/Zend/Soap/Client.php:1087
Stack trace:
#0
/home/devhost/zf2-buch-listings/zf2-buch-chapter14/vendor/zendframework/zendframework/library/Zend/Soap/Client.php(1087):
SoapClient->__soapCall('showPizzas', Array, NULL, NULL, Array)
#1
/home/devhost/zf2-buch-listings/zf2-buch-chapter14/module/Application/view/application/listing/listing1404.phtml(49):
Zend\Soap\Client->__call('showPizzas', Array)
#2
/home/devhost/zf2-buch-listings/zf2-buch-chapter14/module/Application/view/application/listing/listing1404.phtml(49):
Zend\Soap\Client->showPizzas()
#3
/home/devhost/zf2-buch-listings/zf2-buch-chapter14/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(468):
include('/home/devhost/z...')
#4
/home/devhost/zf2-buch-listings/zf2-buch-chapter14/vendor/zendframework/zendframework/library/Zend/View/View.php(203):
Zend\View\Renderer\PhpRenderer->render(O in
/home/devhost/zf2-buch-listings/zf2-buch-chapter14/vendor/zendframework/zendframework/library/Zend/Soap/Client.php
on line 1087
---------------------------------------------------------------------------
How can I check the XML that is sent to the server by the client? There
seems to be a problem there...
Regards,
Ralf
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]