Reply to Re: [PHP] SoapServer::handlle

Your name:

Reply:


Posted by Richard Lynch on 09/30/03 11:08

Charles FENDT wrote:
> <?php
> $server = new SoapServer(null, array('uri' => "http://test-uri/"));
> $server->handle("");
> echo "\nAlive!!!!\n";
> ?>
>
> here is the result
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>SOAP-ENV:Server</faultcode>
> <faultstring>Bad Request</faultstring>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> this didn't output "Alive!!!!" on stdout...
> the script ends with the SoapServer::handle() call.

What I know about SOAP could be carved on a bar of soap with room left
over for all the angels in heaven...

But it looks to me like you didn't set up your SOAP server to respond to a
request for "", so your SOAP server generated a "Bad Request" error, and
then it killed your PHP script.

WILD GUESS:
Change your 'null' when you create the thing to '' and maybe SOAP will
respond to '' with the uri you provided.

There may also be some kind of wild-card system you can use in place of
null, or a SOAP function to tell it what to *DO* when an invalid request
is made, rather than the default "Bad Request" and die() behaviour it
seems to be doing...

A quick check of the manual indicates that there is some way to do this:
http://us3.php.net/manual/en/function.is-soap-fault.php
I dunno how you create a SoapClient with exceptions set to FALSE, but
that's what you're gonna have to do.

--
Like Music?
http://l-i-e.com/artists.htm

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация