From:             david at cubbieco dot com
Operating system: linux 2.6.3 kernel
PHP version:      5CVS-2004-03-28 (dev)
PHP Bug Type:     SOAP related
Bug description:  WDSL SOAP Parsing Schema bug

Description:
------------
I'm new to soap.  I've been over all the tutorials I could find.  I have
successfully used the PHP soap under those tutorials.  There is a WDSL
provided by labs.zap2it.com (free login required for any useful
information.  Use certificate code JYXN-ZAZN-YBUT if you check it out.) 
I've tried to debug the WDSL script.  Because perl, Pear Soap, and Nusoap
can all process this WDSL file I can only conclude that it's a PHP bug.



The WDSL is designed to connect to a soap server and be able to download
an XML file of television listings.  The server requires authentication. 
The perl script (linked in the reproduce code section) successfully
authenticates and downloads the file.



I looked through the WDSL and the referenced WDSL for the <annotation> tag
by itself, but it was always a legitemate (as far as I know)
<xsd:annotation> tag set. 



Pear Soap does not have the authentication required and I can't get nuSoap
to display the output properly.  I don't understand perl and I don't want
to use it so I would really like a PHP only solution to access the US
television listings soap server. 



I'm using the latest CVS.  Configure options:  

         './configure' '--with-mysql=/usr/local/mysql'
'--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-imap=/home/david/imap-2000c' '--with-jpeg-dir=/usr/lib'
'--with-png-dir=/usr/lib' '--with-zlib-dir=/usr/local/lib'
'--with-freetype-dir=/usr/local/include/freetype2' '--enable-ftp'
'--with-mcrypt=/usr/local/lib' '--with-gd' '--with-pspell'
'--with-bz2=/usr/lib' '--enable-sockets' '--with-curl' '--enable-soap'
'--enable-debug'



also tried:

         './configure' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--enable-soap'

with the same result.



I've tried this on two different linux machines, both with the 2.6.3
kernel.



Error occurs for me by running my script either through apache or  by
invoking it on the command line.  Apache does not crash, but script
exicution stops.  I only know how to program in PHP (not C, although I can
"read" some C code and follow it), but I think if PHP ignored all of the
annotation tags this might work?????



Thank you so very much for your volunteer efforts.  I really appreciate
the work you and others do.  The PHP 5.0 SOAP client (and server) appear
to be feature rich and will be really useful to a lot of people.  I'll be
happy to assist in any way I can (additional information, tests, you name
it.)  Just email me.  Thanks.

Reproduce code:
---------------
WDSL:

http://docs.tms.tribune.com/tech/tmsdatadirect/zap2it/xtvd.wsdl

Working perl script (for illustration purposes to verify that the WDSL
appears to be correct):

http://docs.tms.tribune.com/tech/tmsdatadirect/zap2it/datadirect-parse.zip



my code:

<?PHP

$client = new  
SoapClient('http://docs.tms.tribune.com/tech/tmsdatadirect/zap2it/xtvd.wsdl');



?>

Expected result:
----------------
Resource $client created to access the soap server

Actual result:
--------------
<br />

<b>Fatal error</b>:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR:
Parsing Schema: unexpected <annotation> in attributeGroup in
/home/david/peevo/zap2it.php:4

Stack trace:

#0 {main}

  thrown in <b>/home/david/peevo/zap2it.php</b> on line <b>4</b><br />

-- 
Edit bug report at http://bugs.php.net/?id=27742&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27742&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27742&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27742&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27742&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27742&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27742&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27742&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27742&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27742&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27742&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27742&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27742&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27742&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27742&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27742&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27742&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27742&r=float

Reply via email to