|
Posted by David Grant on 01/09/06 17:01
Simon,
It would appear you've not included the full message. Please look at
the source of the message in your web browser. The space between
unexpected and "in complexType" probably contains an XML tag.
David
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:
>
> try
> {
> $client = new SoapClient (
> "http://www.symgate.com/symgate/symgate.wsdl" ) ;
> } catch ( SoapFault $fault ) {
> echo $fault ;
> 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
>
--
David Grant
http://www.grant.org.uk/
Navigation:
[Reply to this message]
|