Re: [sword-app-tech] SWORD v2 - Error parsing service document
Hi Stuart, These features already are implemented in SWORD v1 php library, or should I implement following the sword specification? Is there any example of deposit with no files in sword v1 ? Thanks, Jonathan 2013/4/29 LEWIS Stuart stuart.le...@ed.ac.uk Hi Jonathan, I'll take a look at your service document and reply shortly. To answer your other questions: I have some other questions, in my dissertation I proposed some features for the SWORD client: 1. Deposit a learning object with no files, only with metadata. Yes – SWORD is agnostic about what it deposits. It could deposit just file(s), just metadata, or both. Both versions of SWORD allow this. SWORD v2 is more specific in the specification about it, with the deposit of a basic Dublin Core record being given as an example: - http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html#protocoloperations_creatingresource_entry 2. Using custom metadata for the deposit. Again, SWORD doesn't mind about what it deposits. As long as the SWORD client and server can both handle a custom metadata format, that is fine. Thanks, Stuart Lewis University of Edinburgh stuart.le...@ed.ac.ukmailto:stuart.le...@ed.ac.uk -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech
Re: [sword-app-tech] SWORD v2 - Error parsing service document
Since I already want to thank you for the quick return. Attached is the ServiceDocument. The code that throws the exception is in / swordappv2-php-library-master/swordappservicedocument.php on line 63: //Parse the xml if there is some if ($sac_thexml !='') { $sac_xml = @new SimpleXMLElement($sac_thexml); -- HERE I have some other questions, in my dissertation I proposed some features for the SWORD client: 1. Deposit a learning object with no files, only with metadata. 2. Using custom metadata for the deposit. These features are possible with the SWORD v1 or only with v2? Thanks, Jonathan 2013/4/26 LEWIS Stuart stuart.le...@ed.ac.uk Hi Jonathan, To help debug this, could you share your code that isn't working, and a copy of your service document? Use something like wget to capture it directly. I can take a look early next week at it (I'm away over the weekend). Thanks, Stuart Lewis University of Edinburgh stuart.le...@ed.ac.uk On 25/04/2013 21:43, Richard Jones rich...@cottagelabs.com wrote: Hm, how odd. Can you see where in the php code the error is being thrown? I'm afraid I've not used the PHP version myself, so don't know much about what might be happening. Stuart usually drops by on the list from time to time, and he might be able to help. In the mean time, you could try an alternative client and see if you get the same result. Cheers, Richard On 25 April 2013 21:07, Jonathan Alba jonathan.vide...@gmail.com wrote: Hi Richard, I'm using the php library(https://github.com/swordapp/swordappv2-php-library). I have a DSpace repository at university. One strange thing is that if I use the print_r() to catch the contents returned by ServiceDocument and I copy directly into the SimpleXMLElement () everything works. Thanks 2013/4/25 Richard Jones rich...@cottagelabs.com Hi Jonathan, Can you give us a bit more detail about the environments? Where is the service document coming from, and how are you trying to read it - are you using one of the client libraries? Can you see the raw service document, and determine whether it is valid XML? Cheers, Richard On 25 April 2013 20:47, Jonathan Alba jonathan.vide...@gmail.com wrote: I'm writing an article for the university about the development of a client to the sword v2. While I was using v1 everything was working, but now I'm having problems when processing the document service with v2, exactly in the moment of the convert to XML. An exception is thrown: Fatal error: Uncaught exception 'Exception' with message 'Error parsing service document (String Could not be parsed as XML).' Has anyone experienced this and managed to solve? This is my final dissertation of course. Thanks - - Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech -- Richard Jones, Founder, Cottage Labs t: @richard_d_jones, @cottagelabs w: http://cottagelabs.com -- Richard Jones, Founder, Cottage Labs t: @richard_d_jones, @cottagelabs w: http://cottagelabs.com --- --- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech
Re: [sword-app-tech] SWORD v2 - Error parsing service document
Hi Jonathan, Can you give us a bit more detail about the environments? Where is the service document coming from, and how are you trying to read it - are you using one of the client libraries? Can you see the raw service document, and determine whether it is valid XML? Cheers, Richard On 25 April 2013 20:47, Jonathan Alba jonathan.vide...@gmail.com wrote: I'm writing an article for the university about the development of a client to the sword v2. While I was using v1 everything was working, but now I'm having problems when processing the document service with v2, exactly in the moment of the convert to XML. An exception is thrown: Fatal error: Uncaught exception 'Exception' with message 'Error parsing service document (String Could not be parsed as XML).' Has anyone experienced this and managed to solve? This is my final dissertation of course. Thanks -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech -- Richard Jones, Founder, Cottage Labs t: @richard_d_jones, @cottagelabs w: http://cottagelabs.com -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech
Re: [sword-app-tech] SWORD v2 - Error parsing service document
Hi Jonathan, To help debug this, could you share your code that isn't working, and a copy of your service document? Use something like wget to capture it directly. I can take a look early next week at it (I'm away over the weekend). Thanks, Stuart Lewis University of Edinburgh stuart.le...@ed.ac.uk On 25/04/2013 21:43, Richard Jones rich...@cottagelabs.com wrote: Hm, how odd. Can you see where in the php code the error is being thrown? I'm afraid I've not used the PHP version myself, so don't know much about what might be happening. Stuart usually drops by on the list from time to time, and he might be able to help. In the mean time, you could try an alternative client and see if you get the same result. Cheers, Richard On 25 April 2013 21:07, Jonathan Alba jonathan.vide...@gmail.com wrote: Hi Richard, I'm using the php library(https://github.com/swordapp/swordappv2-php-library). I have a DSpace repository at university. One strange thing is that if I use the print_r() to catch the contents returned by ServiceDocument and I copy directly into the SimpleXMLElement () everything works. Thanks 2013/4/25 Richard Jones rich...@cottagelabs.com Hi Jonathan, Can you give us a bit more detail about the environments? Where is the service document coming from, and how are you trying to read it - are you using one of the client libraries? Can you see the raw service document, and determine whether it is valid XML? Cheers, Richard On 25 April 2013 20:47, Jonathan Alba jonathan.vide...@gmail.com wrote: I'm writing an article for the university about the development of a client to the sword v2. While I was using v1 everything was working, but now I'm having problems when processing the document service with v2, exactly in the moment of the convert to XML. An exception is thrown: Fatal error: Uncaught exception 'Exception' with message 'Error parsing service document (String Could not be parsed as XML).' Has anyone experienced this and managed to solve? This is my final dissertation of course. Thanks - - Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech -- Richard Jones, Founder, Cottage Labs t: @richard_d_jones, @cottagelabs w: http://cottagelabs.com -- Richard Jones, Founder, Cottage Labs t: @richard_d_jones, @cottagelabs w: http://cottagelabs.com --- --- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech