Hi Robert,

>> How have you tracked the issue down to that line?  Is it that line that 
>> throws an error, if so, what is the error?
> 
> Sorry, I was jumping to conclusions, based on assuming the documentation was 
> complete. I've looked through the error log, and found that it's actually a 
> simpleXML error being thrown, so the problem is most likely with the server 
> returning something other than XML:
> 
> "error-library.log:[Tue Jul 19 16:09:40 2011] [error] [client 193.61.230.90] 
> PHP Fatal error:  Uncaught exception 'Exception' with message 'Error parsing 
> response entry (String could not be parsed as XML)' in 
> /www/library/digitalarchive/swordapp-php-library-1.0/swordappclient.php:120..."

Yes - the server is probably returning something other than xml - most likely 
an error message.  Ideally error messages should be returned as a <sword:error> 
document.

A couple of things to help debug this.  Look for the following line, and 
uncomment it (about line 60).  This will enable curl verbose logging:

//curl_setopt($sac_curl, CURLOPT_VERBOSE, 1);

Then after 'curl_close($sac_curl);' (about line 103), add:

echo $sac_resp;

This should show you what the server returned.

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928


------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
sword-app-tech mailing list
sword-app-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sword-app-tech

Reply via email to