Re: Php5 SOAP WSDL parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your response.

Quoting Jochem Maas <jochem@xxxxxxxxxxxxx>:

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.

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.

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.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux