Re: Php5 SOAP WSDL parsing
| From: | Jochem Maas | Date: | Mon, 09 Jan 2006 14:10:30 +0000 |
| Subject: | Re: Php5 SOAP WSDL parsing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228317@lists.php.net to get a copy of this message | ||
Simon Detheridge wrote:
I'm trying to get PHP5 to talk to a web service that I am developing. I have created a wsdl for the service (http://www.symgate.com/symgate/symgate.wsdl) and am trying to get PHP to parse it. (The wsdl validates in a number of tools I've pointed at it, including mindreef soapscope and the wsdl analyser on xmethods.net) When I try and get PHP5 to read the file, I get an error that it not very helpful. My code says:is php choking on the comment?: "<!--<xsd:include schemaLocation="cml.xsd" />-->" or maybe it's choking on the 'included' cml.xsd whihc doesn't define a charset in its 'header'? just thinking out loud there...
try { $client = new SoapClient ( "http://www.symgate.com/symgate/symgate.wsdl" ) ; } catch ( SoapFault $fault ) { echo $fault ;try this instead: echo '<pre>'; var_dump($fault); exit; doubt that it will tell you anymore though.
exit ; } The output says: SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: unexpected in complexType in /var/www/localhost/htdocs/soap1.php:5 Stack trace: #0 /var/www/localhost/htdocs/soap1.php(5): SoapClient->__construct('http://www.symg...') #1 {main} This is obviously truncated. I've tried looking at the apache2 error_log but I can't see any further detail. I'd really like to know what PHP's problem is with my wsdl. How can I see the full output of this error? Thanks, Simon