Re: [SOAP] Getting Error with PHP5 SOAP: 'uri' option is required in nonWSDL mode
| From: | Adam Maccabee Trachtenberg | Date: | Fri, 14 Jul 2006 20:40:19 +0000 |
| Subject: | Re: [SOAP] Getting Error with PHP5 SOAP: 'uri' option is required in nonWSDL mode | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2356@lists.php.net to get a copy of this message | ||
On Fri, 14 Jul 2006, Colin Goldberg wrote:
> I am getting a SOAPFault "'uri' option is required in nonWSDL mode". I
> am not quite sure what this means and how to fix it. Can somebody help?
> $server = new SoapServer(null);
You need to pass an "options" array as the second parameter to the
SOAPServer constructor. It needs a 'uri' key and that should match the
same uri that you're using in your SOAPClient options. You may need to
add more of those options you're passing into SOAPClient here, too.
-adam
--
adam@trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!