[horde] Horde+SoapServer: error in non-wsdl mode: can't find encoding and bad response in ws (partly-solved)

Jan Schneider jan at horde.org
Tue Jun 16 15:32:07 UTC 2009


Zitat von Roberto Polli <rpolli at babel.it>:

> Hi all,
>
> I got find a kludge to solve a series of issues with horde  
> webservices+ubuntu.
> Issues are present on various independent test nodes.
> environment: php5 + ubuntu hardy
>
> issues are:
> * bad responses by ws (not wsdl compliant)
> * bad error codes (it always returns  "can't find encoding")
>
> it seems that it's related to SoapServer in non-wsdl mode.
>
> in PhpSoap.php
>>        $this->_server = new SoapServer(null,
>> 	        array('uri' =>
>> 	        	Horde::url($GLOBALS['registry']->get('webroot', 'horde') .
>> 		        '/rpc.php',
>> 			 true, false)
>> 		)
>> 	);
>
> we're running php in non-wsdl mode.
>
> if I change with a STATIC reference to the wsdl (a dinamic one will cause an
> infinite loop), all those issue were resolved
>>        $this->_server = new SoapServer("http://localhost/wsdl.xml");
>
> Don't know why..but that's it.
>
> Note: putting a dynamic reference like
>>        $this->_server = new SoapServer(
>> 	        Horde::url($GLOBALS['registry']->get('webroot', 'horde')
>> 	        .'/rpc.php?wsdl');
> causes an infinite loop, so avoid it.
>
> Hope somebody can make it clear.

Try if these commits work better:

http://lists.horde.org/archives/cvs/Week-of-Mon-20090615/088054.html
http://lists.horde.org/archives/cvs/Week-of-Mon-20090615/088055.html

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/horde/attachments/20090616/1be0699e/attachment.bin>


More information about the horde mailing list