RE: [PHP] Need a working SOAP example using PHP SOAP
| From: | Daevid Vincent | Date: | Sat, 07 Apr 2007 01:23:09 +0000 |
| Subject: | RE: [PHP] Need a working SOAP example using PHP SOAP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252181@lists.php.net to get a copy of this message | ||
> not very helpful, but an apt quote from 'the man':
>
> http://fplanque.net/Blog/devblog/2005/12/21/rasmus_i_don_t_like_soap
Yeah, unfortunately, I *must* use SOAP. Not my choice, but politics and
company decree, blah blah...
> b, you should catch exceptions
These were the examples from the page. I didn't want to add extra
complexity.
> c, could you be having a problem related to the
> allow_url_fopen ini setting?
Now we're talkin!
Okay, I made sure that allow_url_fopen and allow_url_include are both "on".
Verified via phpinfo();
Still no luck. :-\
However, this sparked an idea...
I have been using my WinXP and IE to hit my Gentoo notebook running
apache2/php/etc. (samba mounting the /home/machine/... to edit the files)
When I fired up KDE and hit the EXACT same pages (which are now local), they
magically worked!
So now the question is, what setting do I have to change in my php.ini file
to get remote requests to work?
> alternatively you may think soap.wsdl_cache_enabled is Off
> but actually its being
> turned On somewhere?
It's off in the php.ini file, also specifically turned off in each
server.php file. Verified off via phpinfo();
> > It's also frustrating that the PHP SOAP function section
> doesn't have an
> > example, nor even links to an example. :-\
>
> there is quite a bit of example code in the SOAP section if
> you ask me:
>
>
> http://php.net/manual/en/function.soap-soapclient-construct.php
No. those are fragments of ways to call the methods.
NOT full working examples of client/server/wsdl