Re: Php5 SOAP WSDL parsing
| From: | Simon Detheridge | Date: | Mon, 09 Jan 2006 14:40:02 +0000 |
| Subject: | Re: Php5 SOAP WSDL parsing | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228318@lists.php.net to get a copy of this message | ||
Thanks for your response.
Quoting Jochem Maas <jochem@iamjochem.com>:
Simon Detheridge wrote:I'm trying to get PHP5 to talk to a web service that I am developing.
is php choking on the comment?: "<!--<xsd:include schemaLocation="cml.xsd" />-->"I've removed the comments from the file. No luck.
or maybe it's choking on the 'included' cml.xsd whihc doesn't define a charset in its 'header'? just thinking out loud there...Fixed, and no dice there either.
It provides more data about where it failed in the PHP, but the internal error string is still: "SOAP-ERROR: Parsing Schema: unexpected in complexType" Actaully, it turns out that in the original message I posted, the message wasn't truncated - just insuffucently verbose to derive any meaningful reason as to why it failed. All I currently know is that php found an unexpected nothing in a complexType. It doesn't tell me which complexType, or anything that might enable me to debug this usefully. I am at a loss. Simon This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.comtry { $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.