Subject: | comments after <?xml .. > |
If there is a comment with a hyphen in it immediately after the <?xml ... ?> line the parser will report it as junk
For example, this wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- WSDL for http://seed-viewer.theseed.org/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan 4 2010 -->
fails because of the - in seed-viewer, however this one:
<?xml version="1.0" encoding="UTF-8"?>
<!-- WSDL for http://bioseed.mcs.anl.gov/~redwards/FIG/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan 4 19:33:01 2010 -->
Does not fail.
Both of these URLs are active in case you want to test the whole XML file.
The former fails with the error message:
junk ' WSDL for http://seed-viewer.theseed.org/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan 4 20:41:23 2010 -->
' before XML element
The issue seems to be with appropriately parsing out the comment
For example, this wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- WSDL for http://seed-viewer.theseed.org/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan 4 2010 -->
fails because of the - in seed-viewer, however this one:
<?xml version="1.0" encoding="UTF-8"?>
<!-- WSDL for http://bioseed.mcs.anl.gov/~redwards/FIG/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan 4 19:33:01 2010 -->
Does not fail.
Both of these URLs are active in case you want to test the whole XML file.
The former fails with the error message:
junk ' WSDL for http://seed-viewer.theseed.org/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan 4 20:41:23 2010 -->
' before XML element
The issue seems to be with appropriately parsing out the comment