You are here: Re: [PHP] Php5 SOAP WSDL parsing « PHP « IT news, forums, messages
Re: [PHP] Php5 SOAP WSDL parsing

Posted by Simon Detheridge on 01/09/06 16:40

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.

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация