| 
	
 | 
 Posted by Simon Detheridge on 01/09/06 15:13 
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 
 
--  
Simon Detheridge 
SEN Developer, Widgit Software 
 
 
 
 
 
 
This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com
 
  
Navigation:
[Reply to this message] 
 |