Soap-ERROR

606 views
Skip to first unread message

jmg

unread,
Jul 10, 2009, 11:21:46 AM7/10/09
to islandora
When i click on Digital Repository
with in Drupal.


* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:
8080/fedora/services/access?wsdl' : Premature end of data in tag html
line 3
* Error connection to Fedora using Soap Client!
* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:
8080/fedora/services/access?wsdl' : Premature end of data in tag html
line 3
* Error connection to Fedora using Soap Client!
* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:
8080/fedora/services/access?wsdl' : Premature end of data in tag html
line 3
* Error connection to Fedora using Soap Client!
* No datastreams available
* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://localhost:
8080/fedora/services/access?wsdl' : Premature end of data in tag html
line 3
* Error connection to

I think, it is because of my
ConnecionHelper.php

I tired Editing this file and it did not change anything.
I also looked at the log file.
/var/apache2/2.2/logs/host/error_log
I see this error.
[Fri Jul 10 11:17:09 2009] [error] [client 127.0.0.1] PHP Fatal
error: SOAP-ERR
OR: Parsing WSDL: Couldn't load from 'http://localhost:8080/fedora/
services/acce
ss?wsdl' : Premature end of data in tag html line 3\n in /var/
apache2/2.2/htdocs
/modules/fedora_repository/ConnectionHelper.php on line 39, referer:
http://loca
lhost/


I am using Open Solaris with the PHP5 that is included in the
operation system.

Any help would be appreciated

John

Paul Pound

unread,
Jul 10, 2009, 12:30:03 PM7/10/09
to isla...@googlegroups.com
Hi John,
There seems to be a bug in php soap that shows up mostly on opensolaris http://bugs.php.net/bug.php?id=27777.  I think this could be causing the problem.  I am going to attach an updated drupalfilter.jar and an updated connectionHelper and ObjectHelper. 

Replace the drupal filter jar file in the webapps/fedora/WEB-INF/lib folder with the one attached here. 

Place the new php files in the root of the drupal fedora_repository folder in the modules directory, overwriting the old ones.  You will probably want to back everything up first so you can undo if needed.  The sql statement will have to change in filter-drupal.xml in the $FEDORA_HOME/server/config file.  It should look like :

SELECT DISTINCT u.uid AS userid, u.name AS Name, u.pass AS Pass,r.name AS Role FROM (users u LEFT JOIN users_roles ON u.uid=users_roles.uid) LEFT JOIN role r ON r.rid=users_roles.rid WHERE   u.name=? AND u.pass=?;

The changes to the drupal filter are not required to fix the bug but requires less configuration as there is no need to add the anonymous info to the fedora-users.xml file and our updated files attached are set to use the new filter.

Let us know if it makes any difference?  We will try to get a new release with these updates soon.  We will have to update the docs etc. to match the changes.

Thanks,
Paul

Paul Pound

unread,
Jul 10, 2009, 12:36:19 PM7/10/09
to isla...@googlegroups.com
I forgot to attach the files sorry about that.

Thanks,
paul

On Fri, Jul 10, 2009 at 12:21 PM, jmg <jmacgi...@hotmail.com> wrote:
ConnectionHelper.php
ObjectHelper.php
DrupalFilter.jar

jmg

unread,
Jul 10, 2009, 3:20:12 PM7/10/09
to islandora

Thanks Paul, for a fast response.


With the changes, I receive the error.
I am really not sure when drupal is getting the string
jmacgill:d9e7e58430b5e7d3975ae1f3a299d04d

I know jmacgill, is the account that i created for the admin for
drupal.




* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://
jmacgill:d9e7e58430b5e7d3975ae1f3a299d04d@localhost:8080/fedora/
services/access?wsdl' : Premature end of data in tag html line 3
* Error connection to Fedora using Soap Client!
* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://
jmacgill:d9e7e58430b5e7d3975ae1f3a299d04d@localhost:8080/fedora/
services/access?wsdl' : Premature end of data in tag html line 3
* Error connection to Fedora using Soap Client!
* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://
jmacgill:d9e7e58430b5e7d3975ae1f3a299d04d@localhost:8080/fedora/
services/access?wsdl' : Premature end of data in tag html line 3
* Error connection to Fedora using Soap Client!
* No datastreams available
* SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://
jmacgill:d9e7e58430b5e7d3975ae1f3a299d04d@localhost:8080/fedora/
services/access?wsdl' : Premature end of data in tag html line 3
* Error connection to Fedora using Soap Client!

am really not sure when drupal is getting the string
jmacgill:d9e7e58430b5e7d3975ae1f3a299d04d

I know jmacgill, is the account that i created for the admin account
account



Paul Pound

unread,
Jul 10, 2009, 3:29:42 PM7/10/09
to isla...@googlegroups.com
Did you configure the add the appropriate entries to the fedora web.xml file (if not see the Islandora Guide)?  You also have to create a drupal filter config file that tells fedora how to connect to the drupal database so fedora can authenticate the user.

Can you hit Fedora from the fedora-admin client or the fedora web interface? 

Check for a file name catalina.out in tomcat/logs directory.  It sometimes has helpful info.

Thanks,
Paul
Reply all
Reply to author
Forward
0 new messages