Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload service returning empty string #3

Open
gardon opened this issue Aug 13, 2012 · 2 comments
Open

Upload service returning empty string #3

gardon opened this issue Aug 13, 2012 · 2 comments

Comments

@gardon
Copy link

gardon commented Aug 13, 2012

I investigated a service call that was apparently successful but returned an empty location. Turns out the XML comes with CDATA so you need to add a parameter do simpleXML

@gardon
Copy link
Author

gardon commented Aug 13, 2012

Where can I post a patch? This line must be edited, or whichever simplexml_load_xxx calls are there:

<?php
$xml = simplexml_load_string($response, 'SimpleXMLElement', LIBXML_NOCDATA);
?>

@troyef
Copy link
Contributor

troyef commented Aug 14, 2012

Hi gardon, Note that the prescribed method for importing courses to SCORM Cloud is now to import directly to SCORM Cloud instead of doing an upload and then an import. The API listing is here: http://cloud.scorm.com/doc/web-services/api.html#rustici.course.importCourse The PHP lib use of that API call is to direct an file upload form to the URL returned from CourseService->GetImportCourseUrl. An example is in the samples/ImportSample.php.

That said, we don't want the upload functionalities to not work, so I'll note this to take a look at later. If you have gotten it to work, feel free to fork our repo and submit a pull request.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants