Re: [SOAP] works always with CLI, but not Apache

[email protected] (Peter Beckman)
Newsgroups php.soap
Message-ID <[email protected]>
Are you using HTTP AUTH?  I had problems with HTTP AUTH.

Also, it's possible that your SOAP URL is causing the error.  The SoapApi
has to fetch it (unless it is being cached), and a delay in that response
could cause an error.

Also, are you sure your GetDHCPLeasesStatus() isn't hanging?  There are too
many issues in here that can cause you timeouts.  Learn to troubleshoot,
grasshopper!

On Mon, 4 Aug 2008, Nathan Wheeler wrote:

> So I've got a request that always works when I run it in CLI, but using a
> browser, it errors out sometimes. It'll error out when I try to run the
> request repeatedly, like just refreshing right after it loads. Is there any
> setting for apache2 or php.ini that I should set?
>
> Code is here: http://pastebin.com/d67d627b2
>
> SoapApi Class just extends SoapClient by formatting it right like:
>
> function soapGetDHCPLeasesStatus()
> {
>        //   Get the list of DHCP leases.
>        $rc = $this->GetDHCPLeasesStatus(array());
>
>        return $rc;
> }
>

---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
[email protected]                                 http://www.angryox.com/
---------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.